asdf
This commit is contained in:
parent
6ce92dfc24
commit
a76e772303
5 changed files with 14 additions and 7 deletions
|
|
@ -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({
|
||||
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@ vim.keymap.set("n", "Q", "<nop>")
|
|||
vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
|
||||
vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
|
||||
|
||||
-- getting Alex off my back :)
|
||||
vim.keymap.set("n", "<leader>dg", "<cmd>DogeGenerate<cr>")
|
||||
|
||||
-- lint / format php files for LC
|
||||
vim.keymap.set("n", "<leader>cc", "<cmd>!php-cs-fixer fix % --using-cache=no<cr>")
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue