Compare commits
1 Commits
3ad87440a0
...
0ad3049af0
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ad3049af0 |
3
init.lua
3
init.lua
@@ -49,3 +49,6 @@ vim.o.autoindent = true
|
|||||||
-- Undotree
|
-- Undotree
|
||||||
vim.cmd("packadd nvim.undotree")
|
vim.cmd("packadd nvim.undotree")
|
||||||
vim.keymap.set("n", "<leader>u", require("undotree").open)
|
vim.keymap.set("n", "<leader>u", require("undotree").open)
|
||||||
|
|
||||||
|
-- Local project config
|
||||||
|
vim.o.exrc = true
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ require("conform").setup({
|
|||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
javascript = { "prettier" },
|
javascript = { "prettier" },
|
||||||
|
typescriptreact = { "prettier" },
|
||||||
typescript = { "prettier" },
|
typescript = { "prettier" },
|
||||||
html = { "prettier" },
|
html = { "prettier" },
|
||||||
svelte = { "prettier" },
|
svelte = { "prettier" },
|
||||||
|
|||||||
@@ -18,22 +18,6 @@ vim.lsp.config("lua_ls", {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
-- vim.lsp.config("emmet_language_server", {
|
|
||||||
-- -- capabilities = require("cmp_nvim_lsp").default_capabilities(),
|
|
||||||
-- filetypes = { "html", "css", "javascriptreact", "typescriptreact" },
|
|
||||||
-- init_options = {
|
|
||||||
-- preferences = {},
|
|
||||||
-- show_expanded_abbreviation = "always",
|
|
||||||
-- show_abbreviation_suggestions = true,
|
|
||||||
-- show_suggestions_as_snippets = true,
|
|
||||||
-- html = {
|
|
||||||
-- options = {
|
|
||||||
-- ["bem.enabled"] = true,
|
|
||||||
-- ["output.selfClosingStyle"] = "xhtml",
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- })
|
|
||||||
vim.lsp.enable({
|
vim.lsp.enable({
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"ts_ls",
|
"ts_ls",
|
||||||
@@ -56,12 +40,23 @@ require("blink.cmp").setup({
|
|||||||
},
|
},
|
||||||
|
|
||||||
completion = {
|
completion = {
|
||||||
|
trigger = {
|
||||||
|
show_on_insert = true,
|
||||||
|
show_on_trigger_character = true,
|
||||||
|
show_on_backspace = true,
|
||||||
|
},
|
||||||
list = {
|
list = {
|
||||||
selection = {
|
selection = {
|
||||||
preselect = false,
|
preselect = false,
|
||||||
auto_insert = true,
|
auto_insert = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
menu = {
|
||||||
|
auto_show = true,
|
||||||
|
border = "rounded",
|
||||||
|
min_width = 35,
|
||||||
|
auto_show_delay_ms = 100,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Keymaps
|
-- Keymaps
|
||||||
|
|||||||
Reference in New Issue
Block a user