Neovim LSP stuff
This commit is contained in:
@ -21,7 +21,7 @@ function fish_user_key_bindings
|
||||
bind ctrl-f fzf-history-widget
|
||||
bind -M insert ctrl-f fzf-history-widget
|
||||
else
|
||||
echo (set_color brcyan )'INFO: fzf not found'
|
||||
echo (set_color brcyan)'INFO: fzf not found'
|
||||
end
|
||||
|
||||
# Unused: alt-z, insert ctrl-r
|
||||
|
@ -40,14 +40,14 @@ column_meter_modes_0=1 1
|
||||
column_meters_1=DateTime Uptime LoadAverage Tasks Battery DiskIO NetworkIO Memory Swap
|
||||
column_meter_modes_1=2 2 2 2 2 2 2 1 1
|
||||
tree_view=0
|
||||
sort_key=47
|
||||
sort_key=46
|
||||
tree_sort_key=49
|
||||
sort_direction=-1
|
||||
tree_sort_direction=-1
|
||||
tree_view_always_by_pid=0
|
||||
all_branches_collapsed=0
|
||||
screen:Main=PID USER PRIORITY NICE M_VIRT M_SHARE M_RESIDENT STATE NLWP PROCESSOR PERCENT_CPU PERCENT_MEM TIME Command
|
||||
.sort_key=PERCENT_MEM
|
||||
.sort_key=PERCENT_CPU
|
||||
.tree_sort_key=TIME
|
||||
.tree_view_always_by_pid=0
|
||||
.tree_view=0
|
||||
|
@ -153,7 +153,7 @@ bind =, Y, exec, kitty yazi
|
||||
bind =, Y, submap, reset
|
||||
bind =, L, exec, logseq
|
||||
bind =, L, submap, reset
|
||||
bind =, O, exec, obsidian
|
||||
bind =, O, exec, QT_SCALE_FACTOR=1.5 obs
|
||||
bind =, O, submap, reset
|
||||
bind =, K, exec, klavaro
|
||||
bind =, K, submap, reset
|
||||
|
@ -1,4 +1,4 @@
|
||||
vim.lsp.config('harper_ls', {
|
||||
return {
|
||||
settings = { -- https://writewithharper.com/docs/integrations/neovim
|
||||
["harper-ls"] = {
|
||||
isolateEnglish = true, -- highly experimental
|
||||
@ -16,4 +16,4 @@ vim.lsp.config('harper_ls', {
|
||||
-- }
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
vim.lsp.config('lua_ls', {
|
||||
return {
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = { globals = { "vim" } }
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
8
.config/nvim/after/lsp/phpactor.lua
Normal file
8
.config/nvim/after/lsp/phpactor.lua
Normal file
@ -0,0 +1,8 @@
|
||||
return {
|
||||
-- settings = {
|
||||
-- language_server_php_cs_fixer = {
|
||||
-- enabled = true,
|
||||
-- bin = "~/.local/share/nvim/mason/bin/php-cs-fixer",
|
||||
-- }
|
||||
-- }
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
vim.lsp.config('rust_analyzer', {
|
||||
return {
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
cargo = {
|
||||
@ -39,4 +39,4 @@ vim.lsp.config('rust_analyzer', {
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
-- https://myriad-dreamin.github.io/tinymist//frontend/neovim.html
|
||||
vim.lsp.config('tinymist', {
|
||||
return {
|
||||
settings = {
|
||||
formatterPrintWidth = 100, -- can't stand 120
|
||||
formatterMode = "typstyle", -- or typstfmt
|
||||
@ -10,4 +10,4 @@ vim.lsp.config('tinymist', {
|
||||
root_dir = function(bufnr, callback)
|
||||
callback(vim.fs.root(bufnr, { ".git" }) or vim.fn.expand "%:p:h")
|
||||
end,
|
||||
})
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
vim.lsp.config('yamlls', {
|
||||
return {
|
||||
settings = {
|
||||
yaml = {
|
||||
format = { enable = true },
|
||||
schemaStore = { enable = true },
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ o.mouse = "a"
|
||||
o.spell = false
|
||||
o.spelllang = "en_us,uk"
|
||||
o.spelloptions = "camel"
|
||||
-- o.fileencodings = "utf-8,cp1251,cp866"
|
||||
o.fileencodings = "ucs-bom,utf-8,default,cp1251"
|
||||
--o.clipboard = "unnamed"plus?
|
||||
o.iskeyword:append "-" -- is part of the word
|
||||
o.formatoptions:append "n" -- indents for numbered lists
|
||||
|
Reference in New Issue
Block a user