Added ts tools and changed theme to tokyonight

This commit is contained in:
2024-08-24 22:18:59 +04:00
parent d88de939be
commit 97f9bf335b
6 changed files with 18 additions and 20 deletions

View File

@@ -1,11 +1,8 @@
return { return {
"briones-gabriel/darcula-solid.nvim", "folke/tokyonight.nvim",
dependencies = { lazy = false,
"rktjmp/lush.nvim", priority = 1000,
},
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
config = function() config = function()
vim.cmd([[colorscheme darcula-solid]]) vim.cmd([[colorscheme tokyonight]])
end, end,
} }

View File

@@ -11,6 +11,7 @@ return {
javascriptreact = { "prettier" }, javascriptreact = { "prettier" },
typescriptreact = { "prettier" }, typescriptreact = { "prettier" },
css = { "prettier" }, css = { "prettier" },
scss = { "prettier" },
html = { "prettier" }, html = { "prettier" },
json = { "prettier" }, json = { "prettier" },
yaml = { "prettier" }, yaml = { "prettier" },

View File

@@ -83,11 +83,6 @@ return {
capabilities = capabilities, capabilities = capabilities,
}) })
end, end,
["tsserver"] = function()
lspconfig["tsserver"].setup({
capabilities = capabilities,
})
end,
["lua_ls"] = function() ["lua_ls"] = function()
lspconfig["lua_ls"].setup({ lspconfig["lua_ls"].setup({
capabilities = capabilities, capabilities = capabilities,

View File

@@ -0,0 +1,5 @@
return {
"pmizio/typescript-tools.nvim",
dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
opts = {},
}

View File

@@ -4,7 +4,7 @@ return {
opts = { opts = {
options = { options = {
icons_enabled = true, icons_enabled = true,
theme = "powerline", theme = "tokyonight",
component_separators = { left = "", right = "" }, component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" }, section_separators = { left = "", right = "" },
disabled_filetypes = { disabled_filetypes = {

View File

@@ -1,9 +1,9 @@
local setup = { local setup = {
source_selector = { source_selector = {
winbar = true, -- toggle to show selector on winbar winbar = true,
statusline = false, -- toggle to show selector on statusline statusline = false,
show_scrolled_off_parent_node = false, -- this will replace the tabs with the parent path show_scrolled_off_parent_node = false,
-- of the top visible node when scrolled down.
sources = { sources = {
{ source = "filesystem" }, { source = "filesystem" },
{ source = "buffers" }, { source = "buffers" },
@@ -17,14 +17,14 @@ return {
branch = "v3.x", branch = "v3.x",
dependencies = { dependencies = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended "nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
}, },
config = function() config = function()
require("neo-tree").setup(setup) 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 }) vim.api.nvim_set_keymap("n", "<leader>n", "<Cmd>Neotree toggle<CR>", { noremap = true, silent = true })
end, end,
keys = "<leader>n", -- Optionally specify here to load the plugin on this keypress keys = "<leader>n",
}, },
} }