Compare commits
10 commits
4b56685efc
...
45444ef947
Author | SHA1 | Date | |
---|---|---|---|
45444ef947 | |||
e8db509c87 | |||
26c7c6038d | |||
d32ca1276d | |||
ca1a92e376 | |||
ce788d1acd | |||
f3e795d388 | |||
472a1b8cea | |||
6252e08783 | |||
8eb417638a |
7 changed files with 15 additions and 20 deletions
2
init.lua
2
init.lua
|
@ -1,7 +1,7 @@
|
|||
require("vim-options")
|
||||
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
|
|
|
@ -10,6 +10,6 @@ return {
|
|||
theme = "dragon"
|
||||
})
|
||||
|
||||
vim.cmd("colorscheme kanagawa")
|
||||
vim.cmd("colorscheme kanagawa-dragon")
|
||||
end
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
"mason-org/mason.nvim",
|
||||
|
||||
config = function()
|
||||
require("mason").setup()
|
||||
|
@ -8,13 +8,15 @@ return {
|
|||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
|
||||
|
||||
config = function()
|
||||
local mason_lspconfig = require("mason")
|
||||
local mason_lspconfig = require("mason-lspconfig")
|
||||
|
||||
mason_lspconfig.setup({
|
||||
ensure_installed = { "clangd", "texlab", "lua_ls", "matlab_ls", "mesonlsp", "sqlls", "svlangserver", "ts_ls", "volar" }
|
||||
ensure_installed = { "clangd", "lua_ls", "matlab_ls", "mesonlsp", "texlab", "ts_ls", "volar", "zls" },
|
||||
automatic_enable = true
|
||||
})
|
||||
|
||||
end
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,31 +3,22 @@ return {
|
|||
|
||||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
local mason_registry = require("mason-registry")
|
||||
local volar_path = mason_registry.get_package("vue-language-server"):get_install_path() .. "/node_modules/@vue/language-server"
|
||||
|
||||
lspconfig.clangd.setup({
|
||||
vim.lsp.config("clangd", {
|
||||
cmd = { "clangd", "-header-insertion=never" },
|
||||
})
|
||||
lspconfig.lua_ls.setup({})
|
||||
lspconfig.matlab_ls.setup({})
|
||||
lspconfig.mesonlsp.setup({})
|
||||
lspconfig.sqlls.setup({})
|
||||
lspconfig.svlangserver.setup({})
|
||||
lspconfig.texlab.setup({})
|
||||
|
||||
lspconfig.ts_ls.setup({
|
||||
vim.lsp.config("ts_ls", {
|
||||
init_options = {
|
||||
plugins = {
|
||||
{
|
||||
name = "@vue/typescript-plugin",
|
||||
location = vue_language_server_path,
|
||||
location = vim.fn.expand("$MASON") .. "/packages/vue-language-server/node_modules/@vue/language-server",
|
||||
languages = { "vue" },
|
||||
},
|
||||
},
|
||||
},
|
||||
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
|
||||
})
|
||||
lspconfig.volar.setup({})
|
||||
end
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ return {
|
|||
require("telescope").setup({})
|
||||
|
||||
local builtin = require("telescope.builtin")
|
||||
|
||||
|
||||
vim.keymap.set("n", "<C-p>", builtin.find_files, {})
|
||||
vim.keymap.set("n", "<C-f>", builtin.live_grep, {})
|
||||
end
|
||||
|
|
3
lua/plugins/zig.lua
Normal file
3
lua/plugins/zig.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
"ziglang/zig.vim"
|
||||
}
|
|
@ -1,4 +1,3 @@
|
|||
vim.o.background = ""
|
||||
vim.cmd("set number")
|
||||
vim.cmd("set expandtab")
|
||||
vim.cmd("set tabstop=2")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue