From a76e7723038351fae775bb6e0360eba594789a03 Mon Sep 17 00:00:00 2001 From: tonybanters Date: Thu, 16 Apr 2026 22:09:29 -0700 Subject: [PATCH] asdf --- after/plugin/completion.lua | 8 +++++++- lua/config/keybinds.lua | 2 -- lua/manage.lua | 3 ++- lua/plugin-list.lua | 3 +-- plugin/lsp.lua | 5 ++++- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/after/plugin/completion.lua b/after/plugin/completion.lua index da77d42..1b4c780 100644 --- a/after/plugin/completion.lua +++ b/after/plugin/completion.lua @@ -1,8 +1,14 @@ local cmp = require("cmp") +require("cmp_nvim_lsp").setup() +cmp.register_source("path", require("cmp_path").new()) +cmp.register_source("buffer", require("cmp_buffer")) cmp.setup({ preselect = cmp.PreselectMode.Item, - completion = { completeopt = "menu,menuone,noinsert" }, + completion = { + completeopt = "menu,menuone,noinsert", + autocomplete = { cmp.TriggerEvent.TextChanged }, + }, window = { documentation = cmp.config.window.bordered() }, mapping = cmp.mapping.preset.insert({ [""] = cmp.mapping.confirm({ select = false }), diff --git a/lua/config/keybinds.lua b/lua/config/keybinds.lua index a2979b8..5f9801c 100644 --- a/lua/config/keybinds.lua +++ b/lua/config/keybinds.lua @@ -29,8 +29,6 @@ vim.keymap.set("n", "Q", "") vim.keymap.set("n", "k", "lnextzz") vim.keymap.set("n", "j", "lprevzz") --- getting Alex off my back :) -vim.keymap.set("n", "dg", "DogeGenerate") -- lint / format php files for LC vim.keymap.set("n", "cc", "!php-cs-fixer fix % --using-cache=no") diff --git a/lua/manage.lua b/lua/manage.lua index 97d24c0..1a9fcf1 100644 --- a/lua/manage.lua +++ b/lua/manage.lua @@ -19,7 +19,8 @@ local function ensure(spec) vim.fn.system(cmd) end - vim.opt.rtp:append(path) + vim.opt.rtp:prepend(path) + vim.opt.rtp:append(path .. "/after") local lua_path = path .. "/lua" if vim.uv.fs_stat(lua_path) then package.path = package.path .. ";" .. lua_path .. "/?.lua;" .. lua_path .. "/?/init.lua" diff --git a/lua/plugin-list.lua b/lua/plugin-list.lua index 33f3d4c..ce1d303 100644 --- a/lua/plugin-list.lua +++ b/lua/plugin-list.lua @@ -1,7 +1,7 @@ return { "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons", - { "nvim-treesitter/nvim-treesitter", branch = "master" }, + { "nvim-treesitter/nvim-treesitter", branch = "master" }, { "nvim-treesitter/nvim-treesitter-textobjects", branch = "main" }, "nvim-treesitter/nvim-treesitter-context", "hrsh7th/nvim-cmp", @@ -17,6 +17,5 @@ return { "tpope/vim-fugitive", "mbbill/undotree", "ojroques/vim-oscyank", - "kkoomen/vim-doge", "captbaritone/better-indent-support-for-php-with-html", } diff --git a/plugin/lsp.lua b/plugin/lsp.lua index 9986ca4..41fa6e5 100644 --- a/plugin/lsp.lua +++ b/plugin/lsp.lua @@ -93,7 +93,10 @@ vim.lsp.config['luals'] = { diagnostics = { globals = { 'vim' } }, workspace = { checkThirdParty = false, - library = vim.api.nvim_get_runtime_file('', true), + library = vim.list_extend( + vim.api.nvim_get_runtime_file('', true), + { '/home/tony/repos/oxwm/templates' } + ), }, telemetry = { enable = false }, },