Skip to content

Commit 4aead7e

Browse files
committed
updated config
1 parent e685dd7 commit 4aead7e

File tree

3 files changed

+28
-15
lines changed

3 files changed

+28
-15
lines changed

init.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -589,13 +589,13 @@ require('lazy').setup({
589589
})
590590

591591
-- Change diagnostic symbols in the sign column (gutter)
592-
-- if vim.g.have_nerd_font then
593-
-- local signs = { Error = '', Warn = '', Hint = '', Info = '' }
594-
-- for type, icon in pairs(signs) do
595-
-- local hl = 'DiagnosticSign' .. type
596-
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
597-
-- end
598-
-- end
592+
if vim.g.have_nerd_font then
593+
local signs = { Error = '', Warn = '', Hint = '', Info = '' }
594+
for type, icon in pairs(signs) do
595+
local hl = 'DiagnosticSign' .. type
596+
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
597+
end
598+
end
599599

600600
-- LSP servers and clients are able to communicate to each other what features they support.
601601
-- By default, Neovim doesn't support everything that is in the LSP specification.
@@ -614,10 +614,10 @@ require('lazy').setup({
614614
-- - settings (table): Override the default settings passed when initializing the server.
615615
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
616616
local servers = {
617-
-- clangd = {},
618-
-- gopls = {},
617+
clangd = {},
618+
gopls = {},
619619
-- pyright = {},
620-
-- rust_analyzer = {},
620+
rust_analyzer = {},
621621
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
622622
--
623623
-- Some languages (like typescript) have entire language plugins that can be useful:

lazy-lock.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,28 @@
33
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
44
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
55
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
6-
"conform.nvim": { "branch": "master", "commit": "6a28c90082a67f62a323ab90d988e000a718a8c7" },
6+
"conform.nvim": { "branch": "master", "commit": "4dd429fe3f47077f4e50cdaf03f7877ce9b213e0" },
77
"fidget.nvim": { "branch": "main", "commit": "e2a175c2abe2d4f65357da1c98c59a5cfb2b543f" },
88
"gitsigns.nvim": { "branch": "main", "commit": "7c27a30450130cd59c4994a6755e3c5d74d83e76" },
99
"lazy.nvim": { "branch": "main", "commit": "cf8ecc2c5e4332760431a33534240b0cbc6680ab" },
10-
"lazydev.nvim": { "branch": "main", "commit": "491452cf1ca6f029e90ad0d0368848fac717c6d2" },
10+
"lazydev.nvim": { "branch": "main", "commit": "d5800897d9180cea800023f2429bce0a94ed6064" },
1111
"luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" },
1212
"mason-lspconfig.nvim": { "branch": "main", "commit": "4d0e5b49363cac187326998b96aa6a2884e0e89b" },
1313
"mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
1414
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
1515
"mini.nvim": { "branch": "main", "commit": "0a8a1072137d916406507c941698a4bfa9dbbe7a" },
1616
"neovim": { "branch": "main", "commit": "07a887a7bef4aacea8c7caebaf8cbf808cdc7a8e" },
17-
"nvim-cmp": { "branch": "main", "commit": "29fb4854573355792df9e156cb779f0d31308796" },
17+
"nvim-cmp": { "branch": "main", "commit": "f17d9b4394027ff4442b298398dfcaab97e40c4f" },
1818
"nvim-lspconfig": { "branch": "master", "commit": "54617a18f4cf46f0c2f6d024fa6feb7515fe036d" },
19-
"nvim-treesitter": { "branch": "master", "commit": "f9e9370a6f710148f4a3f3f4f23d5349c85c2888" },
19+
"nvim-treesitter": { "branch": "master", "commit": "38c12cb9ac8e1c547a8472c87df9e9d7c8b1af0d" },
2020
"nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
21+
"oil.nvim": { "branch": "master", "commit": "52cc8a1fb35ea6ce1df536143add7ce7215c63c0" },
2122
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
2223
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
2324
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
2425
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
2526
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
27+
"undotree": { "branch": "master", "commit": "78b5241191852ffa9bb5da5ff2ee033160798c3b" },
2628
"vim-fugitive": { "branch": "master", "commit": "d4877e54cef67f5af4f950935b1ade19ed6b7370" },
2729
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
2830
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" }

lua/custom/plugins/init.lua

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,16 @@
33
--
44
-- See the kickstart.nvim README for more information
55
return {
6-
{ 'tpope/vim-fugitive' },
6+
'tpope/vim-fugitive',
7+
{
8+
'mbbill/undotree',
9+
config = function()
10+
vim.keymap.set('n', '<leader><F5>', vim.cmd.UndotreeToggle, { desc = 'Toggle Undotree' })
11+
end,
12+
},
13+
{
14+
'stevearc/oil.nvim',
15+
opts = {},
16+
dependencies = { 'nvim-tree/nvim-web-devicons' }, -- use if prefer nvim-web-devicons
17+
},
718
}

0 commit comments

Comments
 (0)