summaryrefslogtreecommitdiff
path: root/nvim/lua/keymaps.lua
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-08-13 14:35:47 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-08-13 14:37:33 +0300
commitcf2dc37aac347c084e1ac9fae183fad422587751 (patch)
tree7b8c075e6ee1472f7309c87d2ce413927c9d4eca /nvim/lua/keymaps.lua
parent7482175e83da7d298c5ba22882b5cd7540160917 (diff)
fix p10k
Diffstat (limited to 'nvim/lua/keymaps.lua')
-rw-r--r--nvim/lua/keymaps.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/nvim/lua/keymaps.lua b/nvim/lua/keymaps.lua
index 8cbd8da..78f06fe 100644
--- a/nvim/lua/keymaps.lua
+++ b/nvim/lua/keymaps.lua
@@ -1,6 +1,8 @@
local map = vim.api.nvim_set_keymap
local opts = {noremap = true, silent = true}
+vim.g.mapleader = " "
+
-- Tree
map('n', '<C-h>', ':NvimTreeToggle<CR>', opts)
@@ -10,10 +12,10 @@ map('n', '<leader>fg', '<cmd>Telescope live_grep<CR>', opts)
map('n', '<leader>fb', '<cmd>Telescope buffers<CR>', opts)
-- LSP
---map('n', '<leader>e', vim.diagnostic.open_float, opts)
---map('n', '[d', vim.diagnostic.goto_prev, opts)
---map('n', ']d', vim.diagnostic.goto_next, opts)
---map('n', '<leader>q', vim.diagnostic.setloclist, opts)
+-- map('n', '<leader>e', vim.diagnostic.open_float, opts)
+-- map('n', '[d', vim.diagnostic.goto_prev, opts)
+-- map('n', ']d', vim.diagnostic.goto_next, opts)
+-- map('n', '<leader>q', vim.diagnostic.setloclist, opts)
local on_attach = function(client, bufnr)
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')