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
|
||||
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
||||
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',
|
||||
custom_filter = function(buf_number, buf_numbers)
|
||||
-- filter out filetypes you don't want to see
|
||||
print(vim.bo[buf_number].filetype)
|
||||
if vim.bo[buf_number].filetype ~= "" then
|
||||
return true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
--local colorscheme = "onedark"
|
||||
|
||||
require("catppuccin").setup({
|
||||
|
@ -9,8 +8,27 @@ require("catppuccin").setup({
|
|||
},
|
||||
integrations = {
|
||||
cmp = true,
|
||||
nvimtree = true,
|
||||
treesitter = true,
|
||||
treesitter_context = true,
|
||||
fidget = 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)
|
||||
if not status_ok then
|
||||
return
|
||||
return
|
||||
end
|
||||
|
|
|
@ -135,7 +135,6 @@ cmp.setup {
|
|||
local col = context.cursor.col
|
||||
local char_before_cursor = string.sub(line, col - 1, col - 1)
|
||||
|
||||
|
||||
if char_before_cursor == "." then
|
||||
if kind == 2 or kind == 5 then
|
||||
return true
|
||||
|
@ -159,6 +158,9 @@ cmp.setup {
|
|||
{
|
||||
--This sources will only show up if there aren't any sources from the other list
|
||||
{ name = "buffer", keyword_length = 5 },
|
||||
},
|
||||
{
|
||||
{ name = "orgmode" }
|
||||
}
|
||||
),
|
||||
confirm_opts = {
|
||||
|
|
|
@ -9,7 +9,7 @@ lazy.setup({
|
|||
{ 'catppuccin/nvim',
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function ()
|
||||
config = function()
|
||||
require('plugins.catppuccin')
|
||||
end
|
||||
},
|
||||
|
@ -21,6 +21,14 @@ lazy.setup({
|
|||
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
|
||||
'tpope/vim-surround',
|
||||
|
||||
|
@ -63,7 +71,11 @@ lazy.setup({
|
|||
--LSP Status
|
||||
{ 'j-hui/fidget.nvim',
|
||||
config = function()
|
||||
require('fidget').setup {}
|
||||
require('fidget').setup {
|
||||
window = {
|
||||
blend = 0,
|
||||
}
|
||||
}
|
||||
end
|
||||
},
|
||||
|
||||
|
@ -115,12 +127,6 @@ lazy.setup({
|
|||
require("plugins.bufferline")
|
||||
end
|
||||
},
|
||||
--{ 'romgrk/barbar.nvim',
|
||||
-- dependencies = 'nvim-tree/nvim-web-devicons',
|
||||
-- config = function()
|
||||
-- require 'plugins.barbar'
|
||||
-- end
|
||||
--},
|
||||
|
||||
--does so much
|
||||
{
|
||||
|
@ -139,4 +145,5 @@ lazy.setup({
|
|||
end,
|
||||
},
|
||||
|
||||
|
||||
})
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require('lualine').setup {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = 'auto',
|
||||
theme = 'catppuccin',
|
||||
component_separators = { left = '', right = ''},
|
||||
section_separators = { left = '', right = ''},
|
||||
disabled_filetypes = {
|
||||
|
|
|
@ -8,14 +8,13 @@ if not present then
|
|||
end
|
||||
|
||||
local options = {
|
||||
ensure_installed = { "lua", "haskell", "rust", "markdown", "markdown_inline" },
|
||||
ensure_installed = { "c", "lua", "haskell", "rust", "markdown", "markdown_inline" , "org"},
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
use_languagetree = true,
|
||||
additional_vim_regex_highlighting = { "markdown" },
|
||||
additional_vim_regex_highlighting = { "markdown" , "org"},
|
||||
},
|
||||
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
launch rofi
|
||||
|
||||
> , ("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
|
||||
|
||||
|
|
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