diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim_settings/remap.lua | 4 | ||||
| -rw-r--r-- | lua/telescope/telescope.lua | 11 | ||||
| -rw-r--r-- | lua/theme/nightfox.lua | 1 | ||||
| -rw-r--r-- | lua/treesitter/treesitter.lua | 2 |
4 files changed, 15 insertions, 3 deletions
diff --git a/lua/nvim_settings/remap.lua b/lua/nvim_settings/remap.lua index c056bc6..b3210c8 100644 --- a/lua/nvim_settings/remap.lua +++ b/lua/nvim_settings/remap.lua @@ -28,7 +28,7 @@ vim.keymap.set("n", "<C-l>", function() require("harpoon.ui").nav_file(4) end) -- GoTo code navigation vim.keymap.set("n", "gD", "<Plug>(coc-declaration)", {silent = true}) vim.keymap.set("n", "gd", "<Plug>(coc-definition)", {silent = true}) -vim.keymap.set("n", "K", '<CMD>lua _G.show_docs()<CR>', {silent = true}) -vim.keymap.set("n", "gr", "<Plug>(coc-references)", {silent = true}) +vim.keymap.set("n", "K", "<CMD>lua _G.show_docs()<CR>", {silent = true}) +vim.keymap.set("n", "gr", "<CMD>Telescope coc references<CR>", {silent = true}) vim.keymap.set("n", "gy", "<Plug>(coc-type-definition)", {silent = true}) vim.keymap.set("n", "gi", "<Plug>(coc-implementation)", {silent = true}) diff --git a/lua/telescope/telescope.lua b/lua/telescope/telescope.lua index e69de29..2902903 100644 --- a/lua/telescope/telescope.lua +++ b/lua/telescope/telescope.lua @@ -0,0 +1,11 @@ +require("telescope").setup({ + extensions = { + coc = { + theme = 'ivy', + prefer_locations = true, -- always use Telescope locations to preview definitions/declarations/implementations etc + push_cursor_on_edit = true, -- save the cursor position to jump back in the future + timeout = 3000, -- timeout for coc commands + } + }, +}) +require('telescope').load_extension('coc') diff --git a/lua/theme/nightfox.lua b/lua/theme/nightfox.lua new file mode 100644 index 0000000..e8338a2 --- /dev/null +++ b/lua/theme/nightfox.lua @@ -0,0 +1 @@ +vim.cmd([[colorscheme nightfox]]) diff --git a/lua/treesitter/treesitter.lua b/lua/treesitter/treesitter.lua index 59d0d2f..3cf605f 100644 --- a/lua/treesitter/treesitter.lua +++ b/lua/treesitter/treesitter.lua @@ -10,7 +10,7 @@ require'nvim-treesitter.configs'.setup { auto_install = true, -- List of parsers to ignore installing (or "all") - ignore_install = { "javascript" }, + ignore_install = { "html" }, ---- If you need to change the installation directory of the parsers (see -> Advanced Setup) -- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")! |
