my lsp doesn't work

languages.toml:

[[language]]
name = "c"
language-servers = ["clangd"]
formatter = { command = "clang-format" }

[[language]]
name = "cpp"
language-servers = ["clangd"]
formatter = { command = "clang-format" }

[[language]]
name = "c-sharp"
scope = "source.cs"
file-types = ["cs"]
roots = [".sln", ".csproj"]
language-servers = ["csharp-ls"]
[language-server.csharp-ls]
command = "/home/dt/.dotnet/tools/csharp-ls"

[[language]]
name = "python"
language-servers = ["pyright"]
formatter = { command = "ruff", args = ["format", "--line-length", "88", "-"] }

[[language]]
name = "rust"
language-servers = ["rust-analyzer"]
formatter = { command = "rustfmt" }

[[language]]
name = "go"
language-servers = ["gopls"]
formatter = { command = "gofmt" }

[language-server.pyright]
command = "/home/dt/.npm-global/bin/pyright-langserver"
args = ["--stdio"]
config = {}

(09:51 PM)dt:dt[~]$ helix --health c-sharp
Configured language servers:
  ✓ csharp-ls: /home/dt/.dotnet/tools/csharp-ls
Configured debug adapter:
  ✓ /usr/bin/netcoredbg
Configured formatter: None
Tree-sitter parser: ✓
Highlight queries: ✓
Textobject queries: ✓
Indent queries: ✘
(09:51 PM)dt:dt[~]$ 

but no lsp functionalities while inside a project

reddit.com
u/sylas_main — 8 days ago
▲ 5 r/lmms

I just installed lmms on my machine rn

as a total newbie, how do i make a drill beat?

resources, videos, kits, advice?

reddit.com
u/sylas_main — 8 days ago
▲ 0 r/orgmode+2 crossposts

how do i learn emacs, the fastest way

  • ctrl h t ( emacs tutorial )
  • M-x is your best friend
  • subscribe to protesilaos, sacha chua, linkarzu, tsoding, system crafters on youtube
  • doom emacs or spacemacs for a week
  • kickstart.emacs
  • emacs prelude
  • have a look at my config https://github.com/megamind1230/dotfiles
  • build your config from scratch
  • have a look at this subreddit about section
  • master emacs ( the book by Mickey Peterson)

pls admins pin this post, or copy content

u/sylas_main — 11 days ago
▲ 3 r/i3wm

can i do this with i3wm default scratchpad?

> how do i have the scratchpad in i3 work the same way the hyprland one works:

  1. you can pop it off and move it to any workspace you want using for example (super shift number_of_workspace)
  2. doing 1. means if you invoked (show scratchpad) again, it shouldn't show it, cuz it already changed state (from being a floating scratch ==> normal tilled window on that workspace), this is the problem
  3. here is my i3 config, spot the the thing i did wrong.

https://github.com/megamind1230/dotfiles/tree/master/.config/i3

reddit.com
u/sylas_main — 1 month ago
▲ 8 r/emacs

this is my best emacs function written in my config up till now

  • I created an emacs function that would
    • create a custom tmp split buffer
      • that would list only all functions assigned to a shortcut on the format:

>

function ==> shortcut

  • and the buffer is sorted by funtions names
  • plus has line numbers;

​

;; --------------------
;; list bindings
;; --------------------
(defun list-bindings ()
  "List all commands with a keybinding, sorted by name."
  (interactive)
  (let* ((bindings '())
         (seen (make-hash-table :test #'equal)))

    (cl-labels
        ((walk (km)
           (map-keymap
            (lambda (_evt bind)
              (cond
               ((keymapp bind)
                (walk bind))
               ((and (commandp bind) (symbolp bind))
                (unless (gethash bind seen)
                  (puthash bind t seen)
                  (let ((keys (where-is-internal bind nil t)))
                    (when keys
                      (push (cons (symbol-name bind)
                                  (key-description keys))
                            bindings)))))))
            km)))

      ;; Walk maps
      (dolist (km
               (append
                (list (current-global-map)
                      (current-local-map))
                (when (featurep 'evil)
                  (list evil-normal-state-map
                        evil-insert-state-map
                        evil-visual-state-map
                        evil-motion-state-map
                        evil-emacs-state-map))))
        (when km (walk km)))

      ;; Sort
      (setq bindings
            (sort bindings
                  (lambda (a b) (string< (car a) (car b)))))

      ;; Output buffer
      (with-current-buffer (get-buffer-create "*keybindings*")
        (let ((inhibit-read-only t))
          (erase-buffer)
          (insert (format "%-50s %s\n" "Function" "Keybinding"))
          (insert (make-string 70 ?=) "\n\n")
          (pcase-dolist (`(,cmd . ,keys) bindings)
            (insert (format "%-50s ==>  %s\n" cmd keys)))
          (goto-char (point-min))
          (setq buffer-read-only t))
        (display-buffer (current-buffer))
        (message "Found %d keybindings" (length bindings))))))

;; Bind it
(global-set-key (kbd "C-c k") #'list-bindings)

this is so much useful for the new emacs users especially

>makes it easier to search functions/ memorize their names / and of course remember the keybindings of them

hope you enjoy it

reddit.com
u/sylas_main — 2 months ago