mirror of
https://github.com/Ajetski/dotfiles.git
synced 2025-09-30 13:03:18 -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"
|
alias v="nvim"
|
||||||
|
|
||||||
#upgraded commands
|
#upgraded commands
|
||||||
alias cat="bat"
|
#alias cat="bat"
|
||||||
alias htop="btop"
|
alias htop="btop"
|
||||||
alias ls="exa"
|
#alias ls="exa"
|
||||||
|
|
||||||
#devleopment variables
|
#devleopment variables
|
||||||
TMUX_CONFIG="~/.config/tmux/.tmux.conf"
|
TMUX_CONFIG="~/.config/tmux/.tmux.conf"
|
||||||
|
@ -3,9 +3,7 @@ local lsp = require('lsp-zero').preset({
|
|||||||
set_lsp_keymaps = true,
|
set_lsp_keymaps = true,
|
||||||
manage_nvim_cmp = true,
|
manage_nvim_cmp = true,
|
||||||
suggest_lsp_servers = false,
|
suggest_lsp_servers = false,
|
||||||
})
|
on_attach = function(client, bufnr)
|
||||||
|
|
||||||
lsp.on_attach(function(client, bufnr)
|
|
||||||
local opts = { buffer = bufnr, remap = false }
|
local opts = { buffer = bufnr, remap = false }
|
||||||
|
|
||||||
if client.name == "eslint" then
|
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", "gr", vim.lsp.buf.references, opts)
|
||||||
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, opts)
|
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, opts)
|
||||||
vim.keymap.set("i", "<C-h>", vim.lsp.buf.signature_help, opts)
|
vim.keymap.set("i", "<C-h>", vim.lsp.buf.signature_help, opts)
|
||||||
end)
|
end
|
||||||
|
})
|
||||||
|
|
||||||
lsp.configure('sumneko_lua', {
|
lsp.configure('sumneko_lua', {
|
||||||
settings = {
|
settings = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user