feat: cleanups

This commit is contained in:
Chen Asraf
2023-05-30 00:38:08 +03:00
parent 2a18eb210e
commit cc9e0fecaf
3 changed files with 36 additions and 26 deletions

View File

@@ -2,10 +2,39 @@ local lsp = require('lsp-zero').preset("recommended")
local lspconfig = require('lspconfig')
lsp.ensure_installed({
-- 'lua-language-server',
'tsserver',
'bash-debug-adapter',
'bashls',
'black',
'buildifier',
'chrome-debug-adapter',
'commitlint',
'cspell',
'cssls',
'docker_compose_language_service',
'dockerls',
'eslint',
'rust_analyzer'
'gh',
'gitui',
'html',
'jq',
'jsonls',
'jsonlint',
'lua_ls',
'markdown-toc',
'markdownlint',
'prettier',
'prettierd',
'ruby_ls',
'rust_analyzer',
'rustfmt',
'shellcheck',
'shfmt',
'stylua',
'tsserver',
'vimls',
'yamlls',
'yamlfmt',
'yamllint',
})
-- Fix Undefined global 'vim'
@@ -17,7 +46,6 @@ local cmp_mappings = lsp.defaults.cmp_mappings({
['<C-p>'] = cmp.mapping.select_prev_item(cmp_select),
['<C-n>'] = cmp.mapping.select_next_item(cmp_select),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
-- TODO: either change this or change the mapping for tmux
["<C-Space>"] = cmp.mapping.complete(),
})
@@ -112,4 +140,3 @@ vim.diagnostic.config({
})
require("flutter-tools").setup({})

View File

@@ -1,4 +1,4 @@
require'nvim-treesitter.configs'.setup {
require('nvim-treesitter.configs').setup({
-- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "javascript", "typescript", "dart", "bash" },
@@ -21,5 +21,5 @@ require'nvim-treesitter.configs'.setup {
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
}
})

View File

@@ -90,31 +90,16 @@ return require('packer').startup(function(use)
}
})
use({
"folke/todo-comments.nvim",
requires = "nvim-lua/plenary.nvim",
config = function()
-- require("todo-comments").setup {
-- -- your configuration comes here
-- -- or leave it empty to use the default settings
-- -- refer to the configuration https://github.com/folke/todo-comments.nvim
-- }
end
})
use({ "folke/todo-comments.nvim", requires = "nvim-lua/plenary.nvim" })
use({
"folke/trouble.nvim",
requires = "nvim-tree/nvim-web-devicons",
config = function()
require("trouble").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
require("trouble").setup({})
end
})
-- use('eandrju/cellular-automaton.nvim')
use({ 'romgrk/barbar.nvim', requires = 'nvim-tree/nvim-web-devicons' })
@@ -122,8 +107,6 @@ return require('packer').startup(function(use)
use('jose-elias-alvarez/null-ls.nvim')
use('MunifTanjim/prettier.nvim')
-- use('neoclide/coc.nvim', { branch = 'release' })
use('mfussenegger/nvim-dap')
use('github/copilot.vim')
use('nvim-tree/nvim-tree.lua')