Neovim Addition

Added in my custom configuration from Neovim that I started writing
from scratch. So far only have implemented tokyonight theme,
telescope, treesitter, and neotree.
This commit is contained in:
2024-08-02 14:31:14 -04:00
parent d187efb257
commit f4295a7ac1
7 changed files with 71 additions and 0 deletions
@@ -0,0 +1,13 @@
return {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
},
config = function()
vim.keymap.set('n', '<leader>fe', ':Neotree filesystem reveal toggle left<CR>', {})
end
}
@@ -0,0 +1,9 @@
return {
'nvim-telescope/telescope.nvim', tag = '0.1.8',
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
end
}
@@ -0,0 +1,10 @@
return {
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
opts = {},
config = function()
vim.cmd.colorscheme "tokyonight-storm"
end
}
@@ -0,0 +1,12 @@
return{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "c", "cmake", "cpp", "lua", "python", "rust", "toml" },
highlight = { enable = true },
indent = { enable = true },
})
end
}
+7
View File
@@ -0,0 +1,7 @@
vim.cmd("set shiftwidth=2")
vim.cmd("set tabstop=2")
vim.g.mapleader = " "
vim.wo.relativenumber = true
vim.wo.number = true
vim.cmd("set list")