updated from consultant files
This commit is contained in:
@@ -596,7 +596,30 @@ require('lazy').setup({
|
||||
-- https://github.com/pmizio/typescript-tools.nvim
|
||||
--
|
||||
-- But for many setups, the LSP (`ts_ls`) will work just fine
|
||||
-- ts_ls = {},
|
||||
ts_ls = {
|
||||
init_options = {
|
||||
plugins = {
|
||||
{
|
||||
notify_on_errorame = '@vue/typescript-plugin',
|
||||
location = '',
|
||||
languages = { 'vue' },
|
||||
},
|
||||
},
|
||||
},
|
||||
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
|
||||
},
|
||||
-- TODO: Something with this setup is not quite right
|
||||
volar = {
|
||||
cmd = { 'npm', 'vue-language-server', '--stdio' },
|
||||
init_options = {
|
||||
vue = { hybridMode = true },
|
||||
},
|
||||
},
|
||||
eslint = {},
|
||||
prettierd = {},
|
||||
-- TODO: end
|
||||
html = {},
|
||||
cssls = {},
|
||||
--
|
||||
|
||||
lua_ls = {
|
||||
@@ -631,6 +654,7 @@ require('lazy').setup({
|
||||
local ensure_installed = vim.tbl_keys(servers or {})
|
||||
vim.list_extend(ensure_installed, {
|
||||
'stylua', -- Used to format Lua code
|
||||
'vue-language-server',
|
||||
})
|
||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||
|
||||
@@ -687,7 +711,7 @@ require('lazy').setup({
|
||||
-- python = { "isort", "black" },
|
||||
--
|
||||
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
javascript = { 'eslint', 'prettierd' },
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -697,6 +721,8 @@ require('lazy').setup({
|
||||
event = 'VimEnter',
|
||||
version = '1.*',
|
||||
dependencies = {
|
||||
-- Copilot blink integration
|
||||
'fang2hou/blink-copilot',
|
||||
-- Snippet Engine
|
||||
{
|
||||
'L3MON4D3/LuaSnip',
|
||||
@@ -772,13 +798,21 @@ require('lazy').setup({
|
||||
},
|
||||
|
||||
sources = {
|
||||
default = { 'lsp', 'path', 'snippets', 'lazydev' },
|
||||
default = { 'copilot', 'lsp', 'path', 'lazydev', 'snippets' },
|
||||
|
||||
providers = {
|
||||
copilot = {
|
||||
name = 'copilot',
|
||||
module = 'blink-copilot',
|
||||
score_offset = 1000,
|
||||
async = true,
|
||||
max_items = 1,
|
||||
},
|
||||
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
|
||||
},
|
||||
},
|
||||
|
||||
snippets = { preset = 'luasnip' },
|
||||
snippets = { preset = 'luasnip', score_offset = -100 },
|
||||
|
||||
-- Blink.cmp includes an optional, recommended rust fuzzy matcher,
|
||||
-- which automatically downloads a prebuilt binary when enabled.
|
||||
@@ -900,7 +934,7 @@ require('lazy').setup({
|
||||
-- This is the easiest way to modularize your config.
|
||||
--
|
||||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||
-- { import = 'custom.plugins' },
|
||||
{ import = 'custom.plugins' },
|
||||
--
|
||||
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
|
||||
-- Or use telescope!
|
||||
|
||||
Reference in New Issue
Block a user