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