more updates
This commit is contained in:
parent
eff30a5470
commit
132d40f184
42
init.lua
42
init.lua
@ -237,9 +237,34 @@ require('lazy').setup({
|
||||
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
||||
{
|
||||
'nvim-tree/nvim-tree.lua',
|
||||
opts = {},
|
||||
opts = {
|
||||
vim.keymap.set('n', '<C-n>', '<cmd>NvimTreeToggle<CR>', { desc = 'nvimtree toggle window' }),
|
||||
vim.keymap.set('n', '<leader>e', '<cmd>NvimTreeFocus<CR>', { desc = 'nvimtree focus window' }),
|
||||
},
|
||||
},
|
||||
{
|
||||
'akinsho/toggleterm.nvim',
|
||||
version = '*',
|
||||
config = true,
|
||||
opts = {
|
||||
vim.keymap.set('n', '<leader>h', '<cmd>ToggleTerm<CR>', { desc = 'toggleterm toggle terminal' }),
|
||||
},
|
||||
},
|
||||
{
|
||||
'williamboman/mason.nvim',
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
'rust_analyzer',
|
||||
'clangd',
|
||||
'clang_format',
|
||||
'go_pls',
|
||||
},
|
||||
function()
|
||||
require('mason').setup()
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
||||
-- NOTE: Plugins can also be added by using a table,
|
||||
-- with the first argument being the link and the following
|
||||
-- keys can be used to configure plugin behavior/loading/etc.
|
||||
@ -425,7 +450,18 @@ require('lazy').setup({
|
||||
'neovim/nvim-lspconfig',
|
||||
dependencies = {
|
||||
-- Automatically install LSPs and related tools to stdpath for Neovim
|
||||
{ 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants
|
||||
{
|
||||
'williamboman/mason.nvim',
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
'clangd',
|
||||
'rust-analyzer',
|
||||
'go_pls',
|
||||
'clang_format',
|
||||
},
|
||||
},
|
||||
config = true,
|
||||
}, -- NOTE: Must be loaded before dependants
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||
|
||||
@ -742,7 +778,7 @@ require('lazy').setup({
|
||||
-- Accept ([y]es) the completion.
|
||||
-- This will auto-import if your LSP supports it.
|
||||
-- This will expand snippets if the LSP sent a snippet.
|
||||
['<C-y>'] = cmp.mapping.confirm { select = true },
|
||||
['<Enter>'] = cmp.mapping.confirm { select = true },
|
||||
|
||||
-- If you prefer more traditional completion keymaps,
|
||||
-- you can uncomment the following lines
|
||||
|
Loading…
x
Reference in New Issue
Block a user