start fixing lsp; todo: fix on_attach

This commit is contained in:
Adam Jeniski 2023-02-17 10:05:41 -05:00
parent f0a20b0a8b
commit d5fef3e10a
2 changed files with 27 additions and 28 deletions

View File

@ -132,9 +132,9 @@ alias vi="nvim"
alias v="nvim"
#upgraded commands
alias cat="bat"
#alias cat="bat"
alias htop="btop"
alias ls="exa"
#alias ls="exa"
#devleopment variables
TMUX_CONFIG="~/.config/tmux/.tmux.conf"

View File

@ -3,9 +3,7 @@ local lsp = require('lsp-zero').preset({
set_lsp_keymaps = true,
manage_nvim_cmp = true,
suggest_lsp_servers = false,
})
lsp.on_attach(function(client, bufnr)
on_attach = function(client, bufnr)
local opts = { buffer = bufnr, remap = false }
if client.name == "eslint" then
@ -23,7 +21,8 @@ lsp.on_attach(function(client, bufnr)
vim.keymap.set("n", "gr", vim.lsp.buf.references, opts)
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, opts)
vim.keymap.set("i", "<C-h>", vim.lsp.buf.signature_help, opts)
end)
end
})
lsp.configure('sumneko_lua', {
settings = {