Skip to content

Commit 038e02c

Browse files
committed
customization
1 parent 907884e commit 038e02c

5 files changed

Lines changed: 52 additions & 21 deletions

File tree

init.lua

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ What is Kickstart?
4343
4444
Kickstart Guide:
4545
46+
4647
TODO: The very first thing you should do is to run the command `:Tutor` in Neovim.
4748
4849
If you don't know what this means, type the following:
@@ -596,14 +597,14 @@ require('lazy').setup({
596597
})
597598

598599
-- Change diagnostic symbols in the sign column (gutter)
599-
-- if vim.g.have_nerd_font then
600-
-- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
601-
-- local diagnostic_signs = {}
602-
-- for type, icon in pairs(signs) do
603-
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon
604-
-- end
605-
-- vim.diagnostic.config { signs = { text = diagnostic_signs } }
606-
-- end
600+
if vim.g.have_nerd_font then
601+
local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
602+
local diagnostic_signs = {}
603+
for type, icon in pairs(signs) do
604+
diagnostic_signs[vim.diagnostic.severity[type]] = icon
605+
end
606+
vim.diagnostic.config { signs = { text = diagnostic_signs } }
607+
end
607608

608609
-- LSP servers and clients are able to communicate to each other what features they support.
609610
-- By default, Neovim doesn't support everything that is in the LSP specification.
@@ -720,10 +721,10 @@ require('lazy').setup({
720721
formatters_by_ft = {
721722
lua = { 'stylua' },
722723
-- Conform can also run multiple formatters sequentially
723-
-- python = { "isort", "black" },
724+
python = { 'isort', 'black' },
724725
--
725726
-- You can use 'stop_after_first' to run the first available formatter from the list
726-
-- javascript = { "prettierd", "prettier", stop_after_first = true },
727+
javascript = { 'prettierd', 'prettier', stop_after_first = true },
727728
},
728729
},
729730
},
@@ -748,12 +749,12 @@ require('lazy').setup({
748749
-- `friendly-snippets` contains a variety of premade snippets.
749750
-- See the README about individual language/framework/plugin snippets:
750751
-- https://github.com/rafamadriz/friendly-snippets
751-
-- {
752-
-- 'rafamadriz/friendly-snippets',
753-
-- config = function()
754-
-- require('luasnip.loaders.from_vscode').lazy_load()
755-
-- end,
756-
-- },
752+
{
753+
'rafamadriz/friendly-snippets',
754+
config = function()
755+
require('luasnip.loaders.from_vscode').lazy_load()
756+
end,
757+
},
757758
},
758759
},
759760
'saadparwaiz1/cmp_luasnip',
@@ -947,16 +948,16 @@ require('lazy').setup({
947948
--
948949
-- require 'kickstart.plugins.debug',
949950
-- require 'kickstart.plugins.indent_line',
950-
-- require 'kickstart.plugins.lint',
951-
-- require 'kickstart.plugins.autopairs',
952-
-- require 'kickstart.plugins.neo-tree',
953-
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
951+
require 'kickstart.plugins.lint',
952+
require 'kickstart.plugins.autopairs',
953+
require 'kickstart.plugins.neo-tree',
954+
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
954955

955956
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
956957
-- This is the easiest way to modularize your config.
957958
--
958959
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
959-
-- { import = 'custom.plugins' },
960+
{ import = 'custom.plugins' },
960961
--
961962
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
962963
-- Or use telescope!

lua/custom/plugins/copilot.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
return {
2+
{
3+
'CopilotC-Nvim/CopilotChat.nvim',
4+
dependencies = {
5+
{ 'github/copilot.vim' }, -- or zbirenbaum/copilot.lua
6+
{ 'nvim-lua/plenary.nvim', branch = 'master' }, -- for curl, log and async functions
7+
},
8+
build = 'make tiktoken', -- Only on MacOS or Linux
9+
opts = {
10+
-- See Configuration section for options
11+
},
12+
-- See Commands section for default commands if you want to lazy load on them
13+
},
14+
}
15+

lua/custom/plugins/lualine.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
return {
2+
'nvim-lualine/lualine.nvim',
3+
dependencies = { 'nvim-tree/nvim-web-devicons' },
4+
config = function()
5+
require('lualine').setup {
6+
options = {
7+
theme = 'dracula',
8+
},
9+
}
10+
end,
11+
}

lua/kickstart/plugins/lint.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ return {
77
local lint = require 'lint'
88
lint.linters_by_ft = {
99
markdown = { 'markdownlint' },
10+
css = { 'stylelint' },
1011
}
1112

1213
-- To allow other plugins to add linters to require('lint').linters_by_ft,

lua/kickstart/plugins/neo-tree.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ return {
1515
},
1616
opts = {
1717
filesystem = {
18+
filtered_items = {
19+
visible = true,
20+
},
1821
window = {
1922
mappings = {
2023
['\\'] = 'close_window',

0 commit comments

Comments
 (0)