mirror of
https://github.com/Ajetski/dotfiles.git
synced 2025-09-30 09:33:19 -09:00
start fixing lsp; todo: fix on_attach
This commit is contained in:
parent
f0a20b0a8b
commit
d5fef3e10a
4
.bashrc
4
.bashrc
@ -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"
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user