@ -166,6 +166,7 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Diagnostic keymaps
vim.keymap . set ( ' n ' , ' <leader>q ' , vim.diagnostic . setloclist , { desc = ' Open diagnostic [Q]uickfix list ' } )
vim.keymap . set ( ' n ' , ' <leader>pv ' , vim.cmd . Ex )
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
-- is not what someone will guess without a bit more experience.
@ -175,10 +176,10 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
vim.keymap . set ( ' t ' , ' <Esc><Esc> ' , ' <C- \\ ><C-n> ' , { desc = ' Exit terminal mode ' } )
-- TIP: Disable arrow keys in normal mode
-- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>' )
-- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>' )
-- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>' )
-- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>' )
vim.keymap . set ( ' n ' , ' <left> ' , ' <cmd>echo "Use h to move!!"<CR> ' )
vim.keymap . set ( ' n ' , ' <right> ' , ' <cmd>echo "Use l to move!!"<CR> ' )
vim.keymap . set ( ' n ' , ' <up> ' , ' <cmd>echo "Use k to move!!"<CR> ' )
vim.keymap . set ( ' n ' , ' <down> ' , ' <cmd>echo "Use j to move!!"<CR> ' )
-- Keybinds to make split navigation easier.
-- Use CTRL+<hjkl> to switch between windows
@ -228,8 +229,8 @@ vim.opt.rtp:prepend(lazypath)
-- NOTE: Here is where you install your plugins.
require ( ' lazy ' ) . setup ( {
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
' tpope/vim-sleuth ' , -- Detect tabstop and shiftwidth automatically
' tpope/vim-sleuth ' , -- Detect tabstop and shiftwidth automatically
' sindrets/diffview.nvim ' , -- Neovim diff plugin
-- 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.
@ -279,7 +280,7 @@ require('lazy').setup({
-- Then, because we use the `opts` key (recommended), the configuration runs
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
{ -- Useful plugin to show you pending keybinds.
{ -- Useful plugin to show you pending keybinds.
' folke/which-key.nvim ' ,
event = ' VimEnter ' , -- Sets the loading event to 'VimEnter'
opts = {
@ -325,7 +326,7 @@ require('lazy').setup({
-- Document existing key chains
spec = {
{ ' <leader>c ' , group = ' [C]ode ' , mode = { ' n ' , ' x ' } } ,
{ ' <leader>c ' , group = ' [C]ode ' , mode = { ' n ' , ' x ' } } ,
{ ' <leader>d ' , group = ' [D]ocument ' } ,
{ ' <leader>r ' , group = ' [R]ename ' } ,
{ ' <leader>s ' , group = ' [S]earch ' } ,
@ -365,7 +366,7 @@ require('lazy').setup({
{ ' nvim-telescope/telescope-ui-select.nvim ' } ,
-- Useful for getting pretty icons, but requires a Nerd Font.
{ ' nvim-tree/nvim-web-devicons ' , enabled = vim.g . have_nerd_font } ,
{ ' nvim-tree/nvim-web-devicons ' , enabled = vim.g . have_nerd_font } ,
} ,
config = function ( )
-- Telescope is a fuzzy finder that comes with a lot of different things that
@ -473,7 +474,7 @@ require('lazy').setup({
' WhoIsSethDaniel/mason-tool-installer.nvim ' ,
-- Useful status updates for LSP.
{ ' j-hui/fidget.nvim ' , opts = { } } ,
{ ' j-hui/fidget.nvim ' , opts = { } } ,
-- Allows extra capabilities provided by nvim-cmp
' hrsh7th/cmp-nvim-lsp ' ,
@ -685,6 +686,8 @@ require('lazy').setup({
require ( ' lspconfig ' ) [ server_name ] . setup ( server )
end ,
} ,
automatic_installation = true ,
ensure_installed = { }
}
end ,
} ,