diff --git a/lua/code-completion.lua b/lua/code-completion.lua index a9c0fc4..62bdc94 100644 --- a/lua/code-completion.lua +++ b/lua/code-completion.lua @@ -54,11 +54,12 @@ cmp.setup({ { name = "path" }, { name = "nvim_lsp", keyword_length = 2 }, { name = "nvim_lsp_signature_help" }, - -- { name = "nvim_lua", keyword_length = 2 }, + { name = "nvim_lua", keyword_length = 2 }, { name = "buffer", keyword_length = 2 }, { name = "calc" }, { name = "lua-latex-symbols", option = { cache = true } }, - { name = "cmp_tabnine", keyword_length = 3 }, + { name = "cmp_tabnine", keyword_length = 20 }, + { name = "fuzzy_buffer", keyword_length = 4 }, }), -- add formatting of the different sources @@ -67,13 +68,12 @@ cmp.setup({ format = function(entry, item) local menu_icon = { nvim_lsp = "λ", - -- ultisnips = "⋗", - path = "🌐", + path = "󰴠", calc = "Σ", - buffer = "📚", - lualatexsymbols = "𝕋", - spell = "📚", - fuzzy_buffer = "📄", + buffer = "", + lualatexsymbols = "󰿈", + spell = "󰘝", + fuzzy_buffer = "", cmp_tabnine = "🖳", } item.menu = menu_icon[entry.source.name] @@ -82,26 +82,19 @@ cmp.setup({ }, }) --- Set configuration for specific filetype. -cmp.setup.filetype("gitcommit", { - sources = cmp.config.sources({ - { name = "cmp_git" }, -- You can specify the `cmp_git` source if you were installed it. - }, { - { name = "buffer" }, - }), -}) - -- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore). cmp.setup.cmdline({ "/", "?" }, { mapping = cmp.mapping.preset.cmdline(), sources = { { name = "buffer" }, + { name = "fuzzy_path", keyword_length = 4 }, }, formatting = { fields = { "menu", "abbr", "kind" }, format = function(entry, item) local menu_icon = { - buffer = "📚", + buffer = "󰱼", + fuzzy_path = "", } item.menu = menu_icon[entry.source.name] return item @@ -114,17 +107,17 @@ cmp.setup.cmdline(":", { mapping = cmp.mapping.preset.cmdline(), sources = cmp.config.sources({ { name = "path" }, - { name = "cmdline_history", keyword_length = 8 }, + { name = "cmdline_history", keyword_length = 24 }, }, { - { name = "cmdline" }, + { name = "cmdline", keyword_length = 1 }, }), formatting = { fields = { "menu", "abbr", "kind" }, format = function(entry, item) local menu_icon = { - path = "🌐", - cmdline = "💻", - cmdline_history = "📰", + path = "󰙅", + cmdline = "", + cmdline_history = "󰂺 ", } item.menu = menu_icon[entry.source.name] return item diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index 4b47579..04e6bf8 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -38,8 +38,8 @@ require("telescope").load_extension("ultisnips") vim.keymap.set("n", "fs", require("telescope").extensions.ultisnips.ultisnips, {}) -- NERDTree Config -vim.g.NERDTreeDirArrowExpandable = "▸" -vim.g.NERDTreeDirArrowCollapsible = "▾" +vim.g.NERDTreeDirArrowExpandable = "" +vim.g.NERDTreeDirArrowCollapsible = "" -- Git-Blame configuration vim.g.gitblame_message_template = " => " @@ -53,7 +53,7 @@ require("mason").setup(require("mason").setup({ ui = { icons = { package_installed = "✓", - package_pending = "➜", + package_pending = "󰔟", package_uninstalled = "✗", }, }, @@ -87,7 +87,7 @@ require("lspconfig").verible.setup({ vim.keymap.set("n", "", ":FloatermNew --height=0.9 --width=0.9 --wintype=float --name=terminal ") -- Set default colorscheme -vim.cmd("colo vim-monokai-tasty") +vim.cmd("colo tokyonight-night") -- Formatter configuration vim.cmd([[ @@ -108,6 +108,7 @@ local linters = { markdown = { "languagetool" }, latex = { "languagetool" }, tex = { "languagetool" }, + plaintex = { "languagetool" }, ada = { "gnat" }, } diff --git a/lua/plugins.lua b/lua/plugins.lua index 79c482d..cee15a3 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -23,6 +23,7 @@ return { "p00f/nvim-ts-rainbow", "cohama/lexima.vim", "ryanoasis/vim-devicons", + "tiagofumo/vim-nerdtree-syntax-highlight", { "nvim-telescope/telescope.nvim", tag = "0.1.5", @@ -49,7 +50,7 @@ return { "dmitmel/cmp-cmdline-history", "amarakon/nvim-cmp-lua-latex-symbols", "f3fora/cmp-spell", - { "petertriho/cmp-git", requires = "nvim-lua/plenary.nvim" }, + { "tzachar/cmp-fuzzy-buffer", requires = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } }, "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim", "neovim/nvim-lspconfig", @@ -59,7 +60,6 @@ return { { "nvim-telescope/telescope-fzf-native.nvim", run = "make" }, { "tzachar/fuzzy.nvim", requires = { "nvim-telescope/telescope-fzf-native.nvim" } }, { "tzachar/cmp-fuzzy-buffer", requires = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } }, - -- "quangnguyen30192/cmp-nvim-ultisnips", "mihaifm/bufstop", "https://git.nickr.eu/yannickreiss/nvim-sourcer.git", { "tzachar/cmp-fuzzy-buffer", requires = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } }, diff --git a/lua/tools.lua b/lua/tools.lua index 04c8ed2..1c1c0cf 100644 --- a/lua/tools.lua +++ b/lua/tools.lua @@ -1,14 +1,12 @@ -- in tools.lua local api = vim.api -local M = {}; +local M = {} function M.makeScratch() - vim.bo[0].buftype=nofile -- set the current buffer's (buffer 0) buftype to nofile - vim.bo[0].bufhidden=hide - vim.bo[0].swapfile=false -end; + vim.bo[0].buftype = nofile -- set the current buffer's (buffer 0) buftype to nofile + vim.bo[0].bufhidden = hide + vim.bo[0].swapfile = false +end - - -return M; +return M diff --git a/lua/vanilla.lua b/lua/vanilla.lua index ec8e366..43532a2 100644 --- a/lua/vanilla.lua +++ b/lua/vanilla.lua @@ -33,7 +33,7 @@ vim.o.guifont = "Source Code Pro:h13" vim.opt.termguicolors = true vim.cmd("colorscheme slate") vim.keymap.set("n", "", ":colo tokyonight-day") -vim.keymap.set("n", "", ":colo tokyonight-moon") +vim.keymap.set("n", "", ":colo tokyonight-night") vim.opt.mouse = ""