diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index 564eb51..9810ce4 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -29,8 +29,8 @@ keymap("n", "", ":vertical resize -2", opts) keymap("n", "", ":vertical resize +2", opts) -- Navigate buffers -keymap("n", "", ":bnext", opts) -keymap("n", "", ":bprevious", opts) +keymap("n", "", ":bnext", opts) +keymap("n", "", ":bprevious", opts) for _, mode in ipairs({"n", "i", "v"}) do vim.keymap.set(mode, '', "BufferLineGoToBuffer 1", { noremap = true, silent = true }) vim.keymap.set(mode, '', "BufferLineGoToBuffer 2", { noremap = true, silent = true }) diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua index b9fcf89..66ebb31 100644 --- a/lua/user/lsp/handlers.lua +++ b/lua/user/lsp/handlers.lua @@ -68,6 +68,7 @@ local function lsp_keymaps(bufnr) keymap(bufnr, "n", "li", "LspInfo", opts) keymap(bufnr, "n", "lI", "LspInstallInfo", opts) keymap(bufnr, "n", "la", "lua vim.lsp.buf.code_action()", opts) + keymap(bufnr, "n", "", "lua vim.lsp.buf.code_action()", opts) keymap(bufnr, "n", "lj", "lua vim.diagnostic.goto_next({buffer=0})", opts) keymap(bufnr, "n", "lk", "lua vim.diagnostic.goto_prev({buffer=0})", opts) keymap(bufnr, "n", "lr", "lua vim.lsp.buf.rename()", opts) diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 2357ca7..d68ae52 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -46,7 +46,7 @@ return packer.startup(function(use) -- My plugins here use { "wbthomason/packer.nvim", commit = "6afb67460283f0e990d35d229fd38fdc04063e0a" } -- Have packer manage itself use { "nvim-lua/plenary.nvim", commit = "4b7e52044bbb84242158d977a50c4cbcd85070c7" } -- Useful lua functions used by lots of plugins - use { "windwp/nvim-autopairs", commit = "4fc96c8f3df89b6d23e5092d31c866c53a346347" } -- Autopairs, integrates with both cmp and treesitter + --use { "windwp/nvim-autopairs", commit = "4fc96c8f3df89b6d23e5092d31c866c53a346347" } -- Autopairs, integrates with both cmp and treesitter use { "numToStr/Comment.nvim", commit = "97a188a98b5a3a6f9b1b850799ac078faa17ab67" } use { "JoosepAlviste/nvim-ts-context-commentstring", commit = "4d3a68c41a53add8804f471fcc49bb398fe8de08" } use { "kyazdani42/nvim-web-devicons", commit = "563f3635c2d8a7be7933b9e547f7c178ba0d4352" } @@ -91,11 +91,11 @@ return packer.startup(function(use) -- Treesitter use { "nvim-treesitter/nvim-treesitter", - commit = "8e763332b7bf7b3a426fd8707b7f5aa85823a5ac", + commit = "1942f3554184e9d9dfb90dcc6542047b8f6511f2", } use { "nvim-treesitter/nvim-treesitter-context", - commit = "2f9f75d33158c0289c70cc1e0975af9d36ec16b2", + commit = "0dd5eae6dbf226107da2c2041ffbb695d9e267c1", } -- Git @@ -107,7 +107,7 @@ return packer.startup(function(use) use { "ravenxrz/DAPInstall.nvim", commit = "8798b4c36d33723e7bba6ed6e2c202f84bb300de" } use { "MunifTanjim/exrc.nvim" } - use { "simrat39/rust-tools.nvim" } + -- use { "simrat39/rust-tools.nvim" } use { "mfussenegger/nvim-dap-python" } use 'farmergreg/vim-lastplace' diff --git a/lua/user/project.lua b/lua/user/project.lua index 19240a0..977ae75 100644 --- a/lua/user/project.lua +++ b/lua/user/project.lua @@ -8,7 +8,7 @@ project.setup({ detection_methods = { "pattern" }, -- patterns used to detect root dir, when **"pattern"** is in detection_methods - patterns = { ".git", "Makefile", "package.json", "Cargo.toml" }, + patterns = { "serverless.yml", ".git", "Makefile", "package.json", "Cargo.toml" }, }) local tele_status_ok, telescope = pcall(require, "telescope")