Added ts tools and changed theme to tokyonight
This commit is contained in:
		@@ -1,11 +1,8 @@
 | 
			
		||||
return {
 | 
			
		||||
	"briones-gabriel/darcula-solid.nvim",
 | 
			
		||||
	dependencies = {
 | 
			
		||||
		"rktjmp/lush.nvim",
 | 
			
		||||
	},
 | 
			
		||||
	lazy = false, -- make sure we load this during startup if it is your main colorscheme
 | 
			
		||||
	priority = 1000, -- make sure to load this before all the other start plugins
 | 
			
		||||
	"folke/tokyonight.nvim",
 | 
			
		||||
	lazy = false,
 | 
			
		||||
	priority = 1000,
 | 
			
		||||
	config = function()
 | 
			
		||||
		vim.cmd([[colorscheme darcula-solid]])
 | 
			
		||||
		vim.cmd([[colorscheme tokyonight]])
 | 
			
		||||
	end,
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -11,6 +11,7 @@ return {
 | 
			
		||||
				javascriptreact = { "prettier" },
 | 
			
		||||
				typescriptreact = { "prettier" },
 | 
			
		||||
				css = { "prettier" },
 | 
			
		||||
				scss = { "prettier" },
 | 
			
		||||
				html = { "prettier" },
 | 
			
		||||
				json = { "prettier" },
 | 
			
		||||
				yaml = { "prettier" },
 | 
			
		||||
 
 | 
			
		||||
@@ -83,11 +83,6 @@ return {
 | 
			
		||||
					capabilities = capabilities,
 | 
			
		||||
				})
 | 
			
		||||
			end,
 | 
			
		||||
			["tsserver"] = function()
 | 
			
		||||
				lspconfig["tsserver"].setup({
 | 
			
		||||
					capabilities = capabilities,
 | 
			
		||||
				})
 | 
			
		||||
			end,
 | 
			
		||||
			["lua_ls"] = function()
 | 
			
		||||
				lspconfig["lua_ls"].setup({
 | 
			
		||||
					capabilities = capabilities,
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								lua/plugins/lsp/typescript-tools.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								lua/plugins/lsp/typescript-tools.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
return {
 | 
			
		||||
	"pmizio/typescript-tools.nvim",
 | 
			
		||||
	dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
 | 
			
		||||
	opts = {},
 | 
			
		||||
}
 | 
			
		||||
@@ -4,7 +4,7 @@ return {
 | 
			
		||||
	opts = {
 | 
			
		||||
		options = {
 | 
			
		||||
			icons_enabled = true,
 | 
			
		||||
			theme = "powerline",
 | 
			
		||||
			theme = "tokyonight",
 | 
			
		||||
			component_separators = { left = "", right = "" },
 | 
			
		||||
			section_separators = { left = "", right = "" },
 | 
			
		||||
			disabled_filetypes = {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,9 @@
 | 
			
		||||
local setup = {
 | 
			
		||||
	source_selector = {
 | 
			
		||||
		winbar = true, -- toggle to show selector on winbar
 | 
			
		||||
		statusline = false, -- toggle to show selector on statusline
 | 
			
		||||
		show_scrolled_off_parent_node = false, -- this will replace the tabs with the parent path
 | 
			
		||||
		-- of the top visible node when scrolled down.
 | 
			
		||||
		winbar = true,
 | 
			
		||||
		statusline = false,
 | 
			
		||||
		show_scrolled_off_parent_node = false,
 | 
			
		||||
 | 
			
		||||
		sources = {
 | 
			
		||||
			{ source = "filesystem" },
 | 
			
		||||
			{ source = "buffers" },
 | 
			
		||||
@@ -17,14 +17,14 @@ return {
 | 
			
		||||
		branch = "v3.x",
 | 
			
		||||
		dependencies = {
 | 
			
		||||
			"nvim-lua/plenary.nvim",
 | 
			
		||||
			"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
 | 
			
		||||
			"nvim-tree/nvim-web-devicons",
 | 
			
		||||
			"MunifTanjim/nui.nvim",
 | 
			
		||||
		},
 | 
			
		||||
		config = function()
 | 
			
		||||
			require("neo-tree").setup(setup)
 | 
			
		||||
			-- Define key mappings here to ensure they are set after the plugin is loaded
 | 
			
		||||
 | 
			
		||||
			vim.api.nvim_set_keymap("n", "<leader>n", "<Cmd>Neotree toggle<CR>", { noremap = true, silent = true })
 | 
			
		||||
		end,
 | 
			
		||||
		keys = "<leader>n", -- Optionally specify here to load the plugin on this keypress
 | 
			
		||||
		keys = "<leader>n",
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user