Compare commits
2 Commits
db6a1ac3ea
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f61b7c994 | |||
| 1c482ecdf7 |
10
init.lua
10
init.lua
@@ -16,7 +16,7 @@ require("lazy").setup("plugins")
|
|||||||
require("commands")
|
require("commands")
|
||||||
|
|
||||||
vim.opt.backup = false
|
vim.opt.backup = false
|
||||||
vim.opt.undodir = os.getenv("HOME") .. '/.cache/nvim/undodir'
|
vim.opt.undodir = vim.fn.stdpath('cache') .. '/undodir'
|
||||||
vim.opt.swapfile = false
|
vim.opt.swapfile = false
|
||||||
vim.opt.undofile = true
|
vim.opt.undofile = true
|
||||||
vim.opt.smartcase = true
|
vim.opt.smartcase = true
|
||||||
@@ -44,10 +44,10 @@ vim.opt.wrap = false
|
|||||||
vim.opt.signcolumn = 'yes:2'
|
vim.opt.signcolumn = 'yes:2'
|
||||||
vim.opt.list = true
|
vim.opt.list = true
|
||||||
vim.opt.listchars = 'tab:▸ ,trail:·'
|
vim.opt.listchars = 'tab:▸ ,trail:·'
|
||||||
vim.opt.shiftwidth = 4
|
vim.opt.shiftwidth = 2
|
||||||
vim.opt.tabstop = 4
|
vim.opt.tabstop = 2
|
||||||
vim.opt.softtabstop = 4
|
vim.opt.softtabstop = 2
|
||||||
vim.opt.expandtab = false
|
vim.opt.expandtab = true
|
||||||
vim.opt.autoindent = true
|
vim.opt.autoindent = true
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
vim.opt.completeopt = { "menu", "menuone", "noselect" }
|
vim.opt.completeopt = { "menu", "menuone", "noselect" }
|
||||||
|
|||||||
@@ -175,7 +175,8 @@ return {
|
|||||||
-- })
|
-- })
|
||||||
vim.lsp.config('clangd', {
|
vim.lsp.config('clangd', {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
on_attach = lsp_attach
|
on_attach = lsp_attach,
|
||||||
|
cmd = { "clangd", '--background-index', '--clang-tidy' }
|
||||||
})
|
})
|
||||||
vim.lsp.enable({ 'ts_ls', 'vue_ls', 'clangd' })
|
vim.lsp.enable({ 'ts_ls', 'vue_ls', 'clangd' })
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user