Skip to content

Commit cde40af

Browse files
committed
Initial Personalization and Enabling Rust
1 parent 3cfccc0 commit cde40af

2 files changed

Lines changed: 31 additions & 9 deletions

File tree

init.lua

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ vim.g.maplocalleader = ' '
9292

9393
-- Set to true if you have a Nerd Font installed
9494
vim.g.have_nerd_font = false
95+
vim.o.guifont = 'CaskaydiaCove Nerd Font Mono'
9596

9697
-- [[ Setting options ]]
9798
-- See `:help vim.opt`
@@ -535,7 +536,7 @@ require('lazy').setup({
535536
-- clangd = {},
536537
-- gopls = {},
537538
-- pyright = {},
538-
-- rust_analyzer = {},
539+
rust_analyzer = {},
539540
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
540541
--
541542
-- Some languages (like typescript) have entire language plugins that can be useful:
@@ -722,16 +723,15 @@ require('lazy').setup({
722723
-- change the command in the config to whatever the name of that colorscheme is
723724
--
724725
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`
725-
'folke/tokyonight.nvim',
726+
'maxmx03/solarized.nvim',
727+
lazy = false,
726728
priority = 1000, -- make sure to load this before all the other start plugins
727729
init = function()
728730
-- Load the colorscheme here.
729731
-- Like many other themes, this one has different styles, and you could load
730732
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
731-
vim.cmd.colorscheme 'tokyonight-night'
732-
733-
-- You can configure highlights by doing something like
734-
vim.cmd.hi 'Comment gui=none'
733+
vim.o.background = 'dark'
734+
vim.cmd.colorscheme 'solarized'
735735
end,
736736
},
737737

@@ -784,7 +784,7 @@ require('lazy').setup({
784784

785785
---@diagnostic disable-next-line: missing-fields
786786
require('nvim-treesitter.configs').setup {
787-
ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc' },
787+
ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc', 'rust' },
788788
-- Autoinstall languages that are not installed
789789
auto_install = true,
790790
highlight = { enable = true },
@@ -809,15 +809,36 @@ require('lazy').setup({
809809
-- Here are some example plugins that I've included in the kickstart repository.
810810
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
811811
--
812-
-- require 'kickstart.plugins.debug',
812+
require 'kickstart.plugins.debug',
813813
-- require 'kickstart.plugins.indent_line',
814814

815815
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
816816
-- This is the easiest way to modularize your config.
817817
--
818818
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
819-
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
819+
-- For additional information, nvimsee `:help lazy.nvim -lazy.nvim-structuring-your-plugins`
820820
-- { import = 'custom.plugins' },
821+
{ -- Directory Exploration
822+
'nvim-neo-tree/neo-tree.nvim',
823+
branch = 'v3.x',
824+
dependencies = {
825+
'nvim-lua/plenary.nvim',
826+
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
827+
'MunifTanjim/nui.nvim',
828+
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
829+
},
830+
config = function()
831+
vim.keymap.set('n', '<F3>', ':Neotree toggle<CR>')
832+
end,
833+
},
834+
{ -- Floating Terminal
835+
'voldikss/vim-floaterm',
836+
config = function()
837+
vim.keymap.set('n', '<leader>ft', ':FloatermNew --name=myfloat --height=0.8 --width=0.7 --autoclose=2 fish <CR>')
838+
vim.keymap.set('n', 't', ':FloatermToggle myfloat <CR>')
839+
vim.keymap.set('t', '<Esc>', '<C-\\><C-n>:q<CR>')
840+
end,
841+
},
821842
}, {
822843
ui = {
823844
-- If you have a Nerd Font, set icons to an empty table which will use the

lua/kickstart/plugins/debug.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ return {
3939
ensure_installed = {
4040
-- Update this to ensure that you have the debuggers for the langs you want
4141
'delve',
42+
'codelldb',
4243
},
4344
}
4445

0 commit comments

Comments
 (0)