update
This commit is contained in:
parent
9d399371a3
commit
2303959cce
8
init.lua
8
init.lua
|
@ -597,6 +597,10 @@ require('lazy').setup({
|
||||||
-- or a suggestion from your LSP for this to activate.
|
-- or a suggestion from your LSP for this to activate.
|
||||||
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' })
|
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' })
|
||||||
|
|
||||||
|
-- Open Code diagnostic in float window. your cursor needs to be on top of an error
|
||||||
|
-- Alternatively a hotkey were added in nvim 0.10 <C-W>d to do this functionaly by default
|
||||||
|
map('<leader>cd', vim.diagnostic.open_float, '[C]ode [D]iagnostic')
|
||||||
|
|
||||||
-- WARN: This is not Goto Definition, this is Goto Declaration.
|
-- WARN: This is not Goto Definition, this is Goto Declaration.
|
||||||
-- For example, in C this would take you to the header.
|
-- For example, in C this would take you to the header.
|
||||||
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||||
|
@ -774,8 +778,9 @@ require('lazy').setup({
|
||||||
-- js -> LSP: tsserver, Formatter & linter: biome
|
-- js -> LSP: tsserver, Formatter & linter: biome
|
||||||
-- npm install -g @biomejs/biome
|
-- npm install -g @biomejs/biome
|
||||||
biome = {},
|
biome = {},
|
||||||
-- npm install -g typescript typescript-language-server
|
-- npm install -g typescript-language-server typescript
|
||||||
tsserver = {},
|
tsserver = {},
|
||||||
|
-- ts_ls = {},
|
||||||
harper_ls = {
|
harper_ls = {
|
||||||
-- userDictPath = '~/dict.txt',
|
-- userDictPath = '~/dict.txt',
|
||||||
},
|
},
|
||||||
|
@ -1058,6 +1063,7 @@ require('lazy').setup({
|
||||||
'tsx',
|
'tsx',
|
||||||
'typescript',
|
'typescript',
|
||||||
'javascript',
|
'javascript',
|
||||||
|
-- 'ts_ls',
|
||||||
'css',
|
'css',
|
||||||
'json',
|
'json',
|
||||||
'comment',
|
'comment',
|
||||||
|
|
Loading…
Reference in New Issue