Browse Source

additional settings

macos
Juni Kim 2 years ago
parent
commit
0f2f1901c0
  1. 6
      after/plugin/lsp.lua
  2. 6
      after/plugin/nvimtree.lua
  3. 7
      lua/junikim/packer.lua
  4. 5
      plugin/packer_compiled.lua

6
after/plugin/lsp.lua

@ -11,6 +11,12 @@ lsp.ensure_installed({
'tsserver',
'texlab',
'pyright',
'sumneko_lua'
})
lsp.on_attach(function(client, bufnr)
local opts = {buffer = bufnr, remap=false}
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
end)
lsp.setup()

6
after/plugin/nvimtree.lua

@ -0,0 +1,6 @@
-- empty setup using defaults
nvimtree = require("nvim-tree")
vim.keymap.set("n", "<C-n>", nvimtree.toggle)
nvimtree.setup()

7
lua/junikim/packer.lua

@ -45,4 +45,11 @@ return require('packer').startup(function(use)
use 'mattn/emmet-vim'
use 'lervag/vimtex'
use {
'nvim-tree/nvim-tree.lua',
requires = {
'nvim-tree/nvim-web-devicons', -- optional, for file icons
},
tag = 'nightly' -- optional, updated every week. (see issue #1193)
}
end)

5
plugin/packer_compiled.lua

@ -145,6 +145,11 @@ _G.packer_plugins = {
path = "/home/junikim/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig"
},
["nvim-tree.lua"] = {
loaded = true,
path = "/home/junikim/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
url = "https://github.com/nvim-tree/nvim-tree.lua"
},
["nvim-treesitter"] = {
loaded = true,
path = "/home/junikim/.local/share/nvim/site/pack/packer/start/nvim-treesitter",

Loading…
Cancel
Save