Skip to content

Commit

Permalink
feat(nvim): sync plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiszamanidis committed Nov 19, 2023
1 parent a721a96 commit be8f0bb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
37 changes: 24 additions & 13 deletions nvim/.config/nvim/after/plugin/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,36 @@ local cmp_mappings = lsp.defaults.cmp_mappings({
-- cmp_mappings["<Tab>"] = nil
-- cmp_mappings["<S-Tab>"] = nil

lsp.setup_nvim_cmp({
local cmp = require("cmp")
local cmp_action = lsp.cmp_action()

cmp.setup({
mapping = cmp_mappings,
})

lsp.ensure_installed({
"cssls",
"cssmodules_ls",
"html",
"jsonls",
"tsserver",
"lua_ls",
"yamlls",
"bashls",
"prismals",
"jdtls",
require("mason").setup({})
require("mason-lspconfig").setup({
-- Replace the language servers listed here
-- with the ones you want to install
ensure_installed = {
"cssls",
"cssmodules_ls",
"html",
"jsonls",
"tsserver",
"lua_ls",
"yamlls",
"bashls",
"prismals",
"jdtls",
},
handlers = {
lsp.default_setup,
},
})

-- Fix Undefined global 'vim'
lsp.nvim_workspace()
lsp.nvim_lua_ls()

lsp.set_preferences({
suggest_lsp_servers = false,
Expand Down
9 changes: 0 additions & 9 deletions nvim/.config/nvim/after/plugin/nvim-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ if not status_ok then
return
end

local config_status_ok, nvim_tree_config = pcall(require, "nvim-tree.config")
if not config_status_ok then
vim.notify("nvim-tree.config not found!")
return
end

local tree_cb = nvim_tree_config.nvim_tree_callback

nvim_tree.setup({
hijack_directories = {
enable = false,
Expand Down Expand Up @@ -119,7 +111,6 @@ nvim_tree.setup({
},
view = {
adaptive_size = true,
hide_root_folder = false,
side = "left",
-- auto_resize = true,
number = false,
Expand Down

0 comments on commit be8f0bb

Please sign in to comment.