From f413fe5e74af9bafd6330282562a414fc7b6560c Mon Sep 17 00:00:00 2001 From: Aotrix Date: Sat, 17 Aug 2024 01:23:04 +0200 Subject: set nightfox theme and added transparent background --- lua/nvim_settings/remap.lua | 4 ++-- lua/telescope/telescope.lua | 11 +++++++++++ lua/theme/nightfox.lua | 1 + lua/treesitter/treesitter.lua | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 lua/theme/nightfox.lua (limited to 'lua') 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", "", function() require("harpoon.ui").nav_file(4) end) -- GoTo code navigation vim.keymap.set("n", "gD", "(coc-declaration)", {silent = true}) vim.keymap.set("n", "gd", "(coc-definition)", {silent = true}) -vim.keymap.set("n", "K", 'lua _G.show_docs()', {silent = true}) -vim.keymap.set("n", "gr", "(coc-references)", {silent = true}) +vim.keymap.set("n", "K", "lua _G.show_docs()", {silent = true}) +vim.keymap.set("n", "gr", "Telescope coc references", {silent = true}) vim.keymap.set("n", "gy", "(coc-type-definition)", {silent = true}) vim.keymap.set("n", "gi", "(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")! -- cgit v1.2.3