added some cool stuff and fixed the bullshit that broke blink
This commit is contained in:
3
init.lua
3
init.lua
@@ -49,3 +49,6 @@ vim.o.autoindent = true
|
||||
-- Undotree
|
||||
vim.cmd("packadd nvim.undotree")
|
||||
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 = {
|
||||
lua = { "stylua" },
|
||||
javascript = { "prettier" },
|
||||
typescriptreact = { "prettier" },
|
||||
typescript = { "prettier" },
|
||||
html = { "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({
|
||||
"lua_ls",
|
||||
"ts_ls",
|
||||
@@ -56,12 +40,23 @@ require("blink.cmp").setup({
|
||||
},
|
||||
|
||||
completion = {
|
||||
trigger = {
|
||||
show_on_insert = true,
|
||||
show_on_trigger_character = true,
|
||||
show_on_backspace = true,
|
||||
},
|
||||
list = {
|
||||
selection = {
|
||||
preselect = false,
|
||||
auto_insert = true,
|
||||
},
|
||||
},
|
||||
menu = {
|
||||
auto_show = true,
|
||||
border = "rounded",
|
||||
min_width = 35,
|
||||
auto_show_delay_ms = 100,
|
||||
},
|
||||
},
|
||||
|
||||
-- Keymaps
|
||||
|
||||
Reference in New Issue
Block a user