Skip to content

Commit

Permalink
fix: add typescript support to nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
mscharley committed Jun 26, 2024
1 parent 9a367d2 commit cd01c7d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
10 changes: 9 additions & 1 deletion xdg-config/nvim%init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ vim.opt.termguicolors = true
vim.opt.scrolloff = 5
vim.opt.showtabline = 2
vim.opt.title = true
vim.opt.listchars = 'tab:> ,leadmultispace:┃ ,trail:-,nbsp:+'
vim.opt.list = true

-- Tab configuration
vim.opt.tabstop = 2
Expand All @@ -35,6 +37,9 @@ Plug.begin()
require('usermod.themes.sonokai')
require('usermod.plugins.nvim-web-devicons')

-- LIBRARIES
require('usermod.plugins.plenary')

-- PLUGINS (load order is important)
require('usermod.plugins.gitsigns')
require('usermod.plugins.lualine')
Expand All @@ -44,11 +49,14 @@ require('usermod.plugins.nvim-lspconfig')
require('usermod.plugins.nvim-treesitter')
require('usermod.plugins.nvim-tree')
require('usermod.plugins.lsp_lines')

require('usermod.plugins.nvim-lsp-file-operations')
require('usermod.plugins.hover')
require('usermod.plugins.nvim-surround')
require('usermod.plugins.commentary')

-- LANGUAGE TOOLS
require('usermod.plugins.typescript-tools')

Plug.ends()

local function vim_enter(data)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require('usermod.vimplug')('antosha417/nvim-lsp-file-operations', {
config = function()
require("lsp-file-operations").setup({})
end
})

5 changes: 5 additions & 0 deletions xdg-config/nvim%lua%usermod/plugins/plenary.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require('usermod.vimplug')('nvim-lua/plenary.nvim', {
config = function()
-- A config function is necessary, but this is a library.
end
})
6 changes: 6 additions & 0 deletions xdg-config/nvim%lua%usermod/plugins/typescript-tools.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require('usermod.vimplug')('pmizio/typescript-tools.nvim', {
config = function()
require('typescript-tools').setup({})
end
})

0 comments on commit cd01c7d

Please sign in to comment.