initial refactor
This commit is contained in:
parent
c144250c75
commit
86d707340b
10 changed files with 165 additions and 240 deletions
|
|
@ -1,4 +1,4 @@
|
|||
local conform = require("conform")
|
||||
-- local conform = require("conform")
|
||||
|
||||
local on_attach = function(client, bufnr)
|
||||
if client.config.flags then
|
||||
|
|
@ -28,13 +28,13 @@ local on_attach = function(client, bufnr)
|
|||
vim.keymap.set({ "n", "v" }, "<space>ca", vim.lsp.buf.code_action, opts)
|
||||
vim.keymap.set("n", "gr", vim.lsp.buf.references, opts)
|
||||
|
||||
vim.keymap.set("n", "<space>F", function()
|
||||
vim.keymap.set("n", "<space>f", function()
|
||||
vim.lsp.buf.format({ async = true })
|
||||
end, opts)
|
||||
|
||||
vim.keymap.set("n", "<space>f", function()
|
||||
conform.format({ bufnr = bufnr })
|
||||
end, opts)
|
||||
-- vim.keymap.set("n", "<space>f", function()
|
||||
-- conform.format({ bufnr = bufnr })
|
||||
-- end, opts)
|
||||
|
||||
vim.keymap.set("i", "<C-n>", vim.lsp.completion.get, { desc = "trigger autocompletion" })
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue