chore: Some small updates to dotfiles , getting ready for arch-config
This commit is contained in:
parent
ca9311c130
commit
f49f85207e
10 changed files with 50 additions and 18 deletions
1
.config/nvim/ftplugin/haskell.lua
Normal file
1
.config/nvim/ftplugin/haskell.lua
Normal file
|
@ -0,0 +1 @@
|
||||||
|
vim.opt_local.formatprg = "floskell --style chris-done"
|
|
@ -27,3 +27,6 @@ vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz")
|
||||||
--Undo dir
|
--Undo dir
|
||||||
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
||||||
vim.opt.undofile = true
|
vim.opt.undofile = true
|
||||||
|
--Org mode hide links
|
||||||
|
vim.opt.conceallevel = 2
|
||||||
|
vim.opt.concealcursor = 'nc'
|
||||||
|
|
|
@ -67,7 +67,6 @@ require("bufferline").setup({
|
||||||
sort_by = 'insert_after_current',
|
sort_by = 'insert_after_current',
|
||||||
custom_filter = function(buf_number, buf_numbers)
|
custom_filter = function(buf_number, buf_numbers)
|
||||||
-- filter out filetypes you don't want to see
|
-- filter out filetypes you don't want to see
|
||||||
print(vim.bo[buf_number].filetype)
|
|
||||||
if vim.bo[buf_number].filetype ~= "" then
|
if vim.bo[buf_number].filetype ~= "" then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--local colorscheme = "onedark"
|
--local colorscheme = "onedark"
|
||||||
|
|
||||||
require("catppuccin").setup({
|
require("catppuccin").setup({
|
||||||
|
@ -9,8 +8,27 @@ require("catppuccin").setup({
|
||||||
},
|
},
|
||||||
integrations = {
|
integrations = {
|
||||||
cmp = true,
|
cmp = true,
|
||||||
nvimtree = true,
|
treesitter = true,
|
||||||
|
treesitter_context = true,
|
||||||
|
fidget = true,
|
||||||
telescope = true,
|
telescope = true,
|
||||||
|
leap = true,
|
||||||
|
mason = true,
|
||||||
|
native_lsp = {
|
||||||
|
enabled = true,
|
||||||
|
virtual_text = {
|
||||||
|
errors = { "italic" },
|
||||||
|
hints = { "italic" },
|
||||||
|
warnings = { "italic" },
|
||||||
|
information = { "italic" },
|
||||||
|
},
|
||||||
|
underlines = {
|
||||||
|
errors = { "underline" },
|
||||||
|
hints = { "underline" },
|
||||||
|
warnings = { "underline" },
|
||||||
|
information = { "underline" },
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -19,5 +37,5 @@ local colorscheme = "catppuccin"
|
||||||
|
|
||||||
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
|
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -135,7 +135,6 @@ cmp.setup {
|
||||||
local col = context.cursor.col
|
local col = context.cursor.col
|
||||||
local char_before_cursor = string.sub(line, col - 1, col - 1)
|
local char_before_cursor = string.sub(line, col - 1, col - 1)
|
||||||
|
|
||||||
|
|
||||||
if char_before_cursor == "." then
|
if char_before_cursor == "." then
|
||||||
if kind == 2 or kind == 5 then
|
if kind == 2 or kind == 5 then
|
||||||
return true
|
return true
|
||||||
|
@ -159,6 +158,9 @@ cmp.setup {
|
||||||
{
|
{
|
||||||
--This sources will only show up if there aren't any sources from the other list
|
--This sources will only show up if there aren't any sources from the other list
|
||||||
{ name = "buffer", keyword_length = 5 },
|
{ name = "buffer", keyword_length = 5 },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
{ name = "orgmode" }
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
confirm_opts = {
|
confirm_opts = {
|
||||||
|
|
|
@ -9,7 +9,7 @@ lazy.setup({
|
||||||
{ 'catppuccin/nvim',
|
{ 'catppuccin/nvim',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function ()
|
config = function()
|
||||||
require('plugins.catppuccin')
|
require('plugins.catppuccin')
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
@ -21,6 +21,14 @@ lazy.setup({
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ 'folke/zen-mode.nvim',
|
||||||
|
config = function()
|
||||||
|
require("zen-mode").setup {
|
||||||
|
vim.keymap.set('n', '<leader>z', '<Cmd> ZenMode <CR>',{noremap=true,silent=true})
|
||||||
|
}
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
--Change add and remove surroundings from words
|
--Change add and remove surroundings from words
|
||||||
'tpope/vim-surround',
|
'tpope/vim-surround',
|
||||||
|
|
||||||
|
@ -63,7 +71,11 @@ lazy.setup({
|
||||||
--LSP Status
|
--LSP Status
|
||||||
{ 'j-hui/fidget.nvim',
|
{ 'j-hui/fidget.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
require('fidget').setup {}
|
require('fidget').setup {
|
||||||
|
window = {
|
||||||
|
blend = 0,
|
||||||
|
}
|
||||||
|
}
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -115,12 +127,6 @@ lazy.setup({
|
||||||
require("plugins.bufferline")
|
require("plugins.bufferline")
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
--{ 'romgrk/barbar.nvim',
|
|
||||||
-- dependencies = 'nvim-tree/nvim-web-devicons',
|
|
||||||
-- config = function()
|
|
||||||
-- require 'plugins.barbar'
|
|
||||||
-- end
|
|
||||||
--},
|
|
||||||
|
|
||||||
--does so much
|
--does so much
|
||||||
{
|
{
|
||||||
|
@ -139,4 +145,5 @@ lazy.setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = 'auto',
|
theme = 'catppuccin',
|
||||||
component_separators = { left = '', right = ''},
|
component_separators = { left = '', right = ''},
|
||||||
section_separators = { left = '', right = ''},
|
section_separators = { left = '', right = ''},
|
||||||
disabled_filetypes = {
|
disabled_filetypes = {
|
||||||
|
|
|
@ -8,14 +8,13 @@ if not present then
|
||||||
end
|
end
|
||||||
|
|
||||||
local options = {
|
local options = {
|
||||||
ensure_installed = { "lua", "haskell", "rust", "markdown", "markdown_inline" },
|
ensure_installed = { "c", "lua", "haskell", "rust", "markdown", "markdown_inline" , "org"},
|
||||||
|
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
use_languagetree = true,
|
use_languagetree = true,
|
||||||
additional_vim_regex_highlighting = { "markdown" },
|
additional_vim_regex_highlighting = { "markdown" , "org"},
|
||||||
},
|
},
|
||||||
|
|
||||||
indent = {
|
indent = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
launch rofi
|
launch rofi
|
||||||
|
|
||||||
> , ("M-p", spawn "rofi -show drun")
|
> , ("M-p", spawn "rofi -show drun")
|
||||||
> , ("M-s", spawn "selected=$(ls ~/.config/rofi/scripts/|rofi -dmenu -p \"Run: \") && bash ~/.config/rofi/scripts/$selected")
|
> , ("M-s", spawn "selected=$(ls ~/scripts/|rofi -dmenu -p \"Run: \") && bash ~/.config/rofi/scripts/$selected")
|
||||||
|
|
||||||
launch web browser
|
launch web browser
|
||||||
|
|
||||||
|
|
3
scripts/projects
Normal file
3
scripts/projects
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
selected=$(ls ~/projects/ | rofi -dmenu -p "Open: ")
|
||||||
|
alacritty -e fish -c "cd ~/projects/$selected && nvim . && fish"
|
Loading…
Add table
Reference in a new issue