mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Update bspwm, nvim, vscode, kitty
This commit is contained in:
parent
c1cc0c9ebe
commit
43b3ba3aaa
9 changed files with 84 additions and 107 deletions
|
|
@ -1,10 +1,14 @@
|
|||
-- LSP servers
|
||||
require'lspinstall'.setup {}
|
||||
require'lspconfig'.gopls.setup {} -- Go
|
||||
require'lspconfig'.pyls.setup {} -- Python
|
||||
require'lspconfig'.lua.setup {} -- Lua
|
||||
require'tsserver' -- JS/TS
|
||||
require'efm' -- Linter's
|
||||
require"lspinstall".setup {}
|
||||
require"lspconfig".gopls.setup {}
|
||||
-- require"lspconfig".pyls.setup {}
|
||||
-- require"lspconfig".rls.setup {}
|
||||
-- require"lspconfig".denols.setup {}
|
||||
require"lspconfig".lua.setup{}
|
||||
require"tsserver"
|
||||
require"efm"
|
||||
|
||||
-- Theme
|
||||
require"github-theme".setup {}
|
||||
|
||||
-- Compe
|
||||
require'compe'.setup {
|
||||
|
|
@ -20,7 +24,7 @@ require'compe'.setup {
|
|||
|
||||
-- LuaLine
|
||||
require'lualine'.setup {options={
|
||||
theme = "codedark"
|
||||
theme = "github"
|
||||
}}
|
||||
|
||||
-- GitSigns
|
||||
|
|
@ -41,31 +45,15 @@ require'gitsigns'.setup {
|
|||
use_internal_diff = true,
|
||||
}
|
||||
|
||||
-- NeoGit
|
||||
require'neogit'.setup {}
|
||||
|
||||
-- NvimTree
|
||||
vim.g.nvim_tree_side = "right"
|
||||
vim.g.nvim_tree_ignore = {".git", ".cache", "node_modules", "__pycache__", "venv", "env"}
|
||||
vim.g.nvim_tree_auto_close = 0
|
||||
vim.g.nvim_tree_quit_on_open = 0
|
||||
vim.g.nvim_tree_ignore = {".git", ".cache", "node_modules", "__pycache__", "env"}
|
||||
-- vim.g.nvim_tree_auto_close = 0
|
||||
vim.g.nvim_tree_width = 24
|
||||
|
||||
|
||||
-- TreeSitter
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = {'javascript', 'typescript', 'jsdoc', 'python', 'go'};
|
||||
ensure_installed = {'javascript', 'typescript', 'jsdoc', 'python', 'go', 'bash'};
|
||||
highlight = {enable=true};
|
||||
}
|
||||
|
||||
-- Colorizer
|
||||
require'colorizer'.setup({'*';}, {
|
||||
mode = 'background';
|
||||
RGB = true;
|
||||
RRGGBB = true;
|
||||
RRGGBBAA = false;
|
||||
rgb_fn = true;
|
||||
hsl_fn = false;
|
||||
css = false;
|
||||
css_fn = true;
|
||||
names = false;
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,17 +1,21 @@
|
|||
local root_pattern = require("lspconfig/util").root_pattern
|
||||
|
||||
require('lspconfig').typescript.setup({
|
||||
handlers = {
|
||||
["textDocument/publishDiagnostics"] = function(_, _, params, client_id, _, config)
|
||||
if params.diagnostics ~= nil then
|
||||
local idx = 1
|
||||
while idx <= #params.diagnostics do
|
||||
if params.diagnostics[idx].code == 80001 then
|
||||
table.remove(params.diagnostics, idx)
|
||||
else
|
||||
idx = idx + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
vim.lsp.diagnostics.on_publish_diagnostics(_, _, params, client_id, _, config)
|
||||
end,
|
||||
},
|
||||
handlers = {
|
||||
["textDocument/publishDiagnostics"] = function(_, _, params, client_id, _, config)
|
||||
if params.diagnostics ~= nil then
|
||||
local idx = 1
|
||||
while idx <= #params.diagnostics do
|
||||
if params.diagnostics[idx].code == 80001 then
|
||||
table.remove(params.diagnostics, idx)
|
||||
else
|
||||
idx = idx + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
vim.lsp.diagnostic.on_publish_diagnostics(_, _, params, client_id, _, config)
|
||||
end,
|
||||
},
|
||||
filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" };
|
||||
root_dir = root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git");
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue